summaryrefslogtreecommitdiff
path: root/src/modules/extra/m_ssl_openssl.cpp
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2009-06-06 20:56:41 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2009-06-06 20:56:41 +0000
commit193acaa853fe0f3bbf4cd8d8bccbe480088d76cc (patch)
tree09bab1f7740175545023684b3bba3c482582df6a /src/modules/extra/m_ssl_openssl.cpp
parent79283c8393effec5d9e1704a52b874994c67c936 (diff)
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
Diffstat (limited to 'src/modules/extra/m_ssl_openssl.cpp')
-rw-r--r--src/modules/extra/m_ssl_openssl.cpp3
1 files changed, 2 insertions, 1 deletions
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)
{