diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-11-11 15:47:32 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-11-11 15:47:32 +0000 |
commit | fa9eea07bbde561237e6761d613fcbad73dc4b43 (patch) | |
tree | ed11219fb58f73e219e313a9956fb13976dc6661 | |
parent | a9b538041a2773f84da5a479849f3dc166171c97 (diff) |
Dont allow overlapped ports in these files
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5695 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r-- | src/modules/extra/m_ssl_gnutls.cpp | 2 | ||||
-rw-r--r-- | src/modules/extra/m_ssl_openssl.cpp | 2 | ||||
-rw-r--r-- | src/modules/m_spanningtree.cpp | 2 | ||||
-rw-r--r-- | src/socket.cpp | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/extra/m_ssl_gnutls.cpp b/src/modules/extra/m_ssl_gnutls.cpp index 863b503cf..ad14da755 100644 --- a/src/modules/extra/m_ssl_gnutls.cpp +++ b/src/modules/extra/m_ssl_gnutls.cpp @@ -118,7 +118,7 @@ class ModuleSSLGnuTLS : public Module { // Get the port we're meant to be listening on with SSL std::string port = Conf->ReadValue("bind", "port", i); - irc::portparser portrange(port); + irc::portparser portrange(port, false); long portno = -1; while ((portno = portrange.GetToken())) { diff --git a/src/modules/extra/m_ssl_openssl.cpp b/src/modules/extra/m_ssl_openssl.cpp index d1521ad4d..bfaf2f675 100644 --- a/src/modules/extra/m_ssl_openssl.cpp +++ b/src/modules/extra/m_ssl_openssl.cpp @@ -143,7 +143,7 @@ class ModuleSSLOpenSSL : public Module { // Get the port we're meant to be listening on with SSL std::string port = Conf->ReadValue("bind", "port", i); - irc::portparser portrange(port); + irc::portparser portrange(port, false); long portno = -1; while ((portno = portrange.GetToken())) { diff --git a/src/modules/m_spanningtree.cpp b/src/modules/m_spanningtree.cpp index 20c81bd95..63e6f5d27 100644 --- a/src/modules/m_spanningtree.cpp +++ b/src/modules/m_spanningtree.cpp @@ -3874,7 +3874,7 @@ void SpanningTreeUtilities::ReadConfiguration(bool rebind) std::string Port = Conf->ReadValue("bind","port",j); if (Type == "servers") { - irc::portparser portrange(Port); + irc::portparser portrange(Port, false); int portno = -1; while ((portno = portrange.GetToken())) { diff --git a/src/socket.cpp b/src/socket.cpp index b68de7159..3c446c45b 100644 --- a/src/socket.cpp +++ b/src/socket.cpp @@ -409,7 +409,7 @@ int InspIRCd::BindPorts(bool bail, int &ports_found) if ((!*Type) || (!strcmp(Type,"clients"))) { - irc::portparser portrange(configToken); + irc::portparser portrange(configToken, false); long portno = -1; while (portno = portrange.GetToken()) { |