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 | |
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
-rw-r--r-- | Changes | 1 | ||||
-rw-r--r-- | config.c | 15 | ||||
-rw-r--r-- | version.log | 6 |
3 files changed, 21 insertions, 1 deletions
@@ -1,6 +1,7 @@ Anope Version S V N ------------------- Provided by Anope Dev. <dev@anope.org> - 2004 +07/05 A Warning when LocalAddress conflicts with RemoteServer [#118] 06/18 A Added proper Bahamut1.8 support. [ #55] 07/04 F Fixed a bug with m_time. [ #00] 06/30 F Fixed bug which caused failure in anope crontab script. [ #00] @@ -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); diff --git a/version.log b/version.log index 5e9b1d22d..b3e0ff9f2 100644 --- a/version.log +++ b/version.log @@ -8,10 +8,14 @@ VERSION_MAJOR="1" VERSION_MINOR="7" VERSION_PATCH="4" -VERSION_BUILD="228" +VERSION_BUILD="229" # $Log$ # +# BUILD : 1.7.4 (229) +# BUGS : 118 +# NOTES : Added warning for a config conflict between LocalAddress and RemoteServer +# # BUILD : 1.7.4 (228) # BUGS : # NOTES : Fixed a bug with m_time. |