diff options
author | geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b <geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2004-07-05 18:48:30 +0000 |
---|---|---|
committer | geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b <geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2004-07-05 18:48:30 +0000 |
commit | 7b2010245b2b20b627f79f9364d77fe840bf4b72 (patch) | |
tree | d2ffaeaf6e40b2c365de15845e4d00de87eb7b8b /config.c | |
parent | 3983d3accb72909c11b69baedce486a31b992ec3 (diff) |
BUILD : 1.7.4 (229) BUGS : 118 NOTES : Added warning for a config conflict between LocalAddress and RemoteServer
git-svn-id: svn://svn.anope.org/anope/trunk@229 31f1291d-b8d6-0310-a050-a5561fc1590b
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@162 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'config.c')
-rw-r--r-- | config.c | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -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); |