summaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
Diffstat (limited to 'config.c')
-rw-r--r--config.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/config.c b/config.c
index 03c7e60f6..e2d09f9e3 100644
--- a/config.c
+++ b/config.c
@@ -929,6 +929,21 @@ int read_config(int reload)
if (RemoteServer3)
CHECK(RemoteServer2);
}
+ if (!reload) {
+ if (LocalHost) {
+ if ((!stricmp(LocalHost, RemoteServer))
+ && LocalPort == RemotePort) {
+ printf
+ ("\n*** LocalAddress and RemoteServer are set to use the same IP address\n"
+ "*** (%s) and port (%d). This would have resulted in errors.\n"
+ "*** Change the LocalAddress to bind to another port.\n",
+ RemoteServer, LocalPort);
+ retval = 0;
+ }
+ }
+ }
+
+
CHECK(NetworkName);
if (!reload) {
CHEK2(temp_userhost, ServiceUser);