From 193acaa853fe0f3bbf4cd8d8bccbe480088d76cc Mon Sep 17 00:00:00 2001 From: w00t Date: Sat, 6 Jun 2009 20:56:41 +0000 Subject: Don't display locally bound SSL ports in SSL= (for hidden services and such) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11403 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/extra/m_ssl_gnutls.cpp | 3 ++- src/modules/extra/m_ssl_openssl.cpp | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/modules/extra/m_ssl_gnutls.cpp b/src/modules/extra/m_ssl_gnutls.cpp index 6c6dab11f..c0cd05df5 100644 --- a/src/modules/extra/m_ssl_gnutls.cpp +++ b/src/modules/extra/m_ssl_gnutls.cpp @@ -179,7 +179,8 @@ class ModuleSSLGnuTLS : public Module ServerInstance->Config->ports[i]->SetDescription("ssl"); ServerInstance->Logs->Log("m_ssl_gnutls",DEFAULT, "m_ssl_gnutls.so: Enabling SSL for port %ld", portno); - sslports.append((addr.empty() ? "*" : addr)).append(":").append(ConvToStr(portno)).append(";"); + if (addr != "127.0.0.1") + sslports.append((addr.empty() ? "*" : addr)).append(":").append(ConvToStr(portno)).append(";"); } catch (ModuleException &e) { diff --git a/src/modules/extra/m_ssl_openssl.cpp b/src/modules/extra/m_ssl_openssl.cpp index b1172e179..53a0e241f 100644 --- a/src/modules/extra/m_ssl_openssl.cpp +++ b/src/modules/extra/m_ssl_openssl.cpp @@ -208,7 +208,8 @@ class ModuleSSLOpenSSL : public Module ServerInstance->Config->ports[i]->SetDescription("ssl"); ServerInstance->Logs->Log("m_ssl_openssl",DEFAULT, "m_ssl_openssl.so: Enabling SSL for port %ld", portno); - sslports.append((addr.empty() ? "*" : addr)).append(":").append(ConvToStr(portno)).append(";"); + if (addr != "127.0.0.1") + sslports.append((addr.empty() ? "*" : addr)).append(":").append(ConvToStr(portno)).append(";"); } catch (ModuleException &e) { -- cgit v1.2.3