Server IP always overwritten (if different)

Hello,

It seems in the code that in

            private void GetConfig<T>(ref T variable, params string[] path) {
                if (path.Length == 0) return;

                if (plugin.Config.Get(path) == null) {
                    SetConfig(ref variable, path);
                    plugin.PrintWarning($"Added new field to config: {string.Join("/", path)}");
                }

                string serverAddress = plugin.covalence.Server.Address.ToString();
                if (path[path.Length - 1].Equals("Your Server IP") && string.IsNullOrEmpty(ServerIp) && !string.IsNullOrEmpty(serverAddress) && !serverAddress.Equals("*.*.*.*")) {
                    ServerIp = serverAddress;
                    SetConfig(ref variable, path);
                }

                variable = (T)Convert.ChangeType(plugin.Config.Get(path), typeof(T));
            }
​

always overrides my server IP address in the configuration.

The IP used to get access to the internet is different than the one used by the Rust server (ddos protection).

Regards,

[clear]

Merged post

I commented out

                    ServerIp = serverAddress;
                    SetConfig(ref variable, path);​

and this prevent the plugin to change the IP in the configuration file.