Added ListenHost for binding to a specific ip instead of inaddr_any

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@588 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
prozacx
2005-12-27 19:19:05 +00:00
parent 3ef968b17e
commit ef9d9b217a
3 changed files with 43 additions and 10 deletions

View File

@@ -123,7 +123,10 @@ public:
#endif
}
m_uPort = sPort.ToUInt();
if (!sPort.empty()) {
m_uPort = sPort.ToUInt();
}
CWebAdminSock* pListenSock = new CWebAdminSock(this);
#ifdef HAVE_LIBSSL
@@ -132,7 +135,7 @@ public:
}
#endif
return m_pManager->ListenAll(m_uPort, "WebAdmin::Listener", bSSL, SOMAXCONN, pListenSock);
return m_pManager->ListenHost(m_uPort, "WebAdmin::Listener", CZNC::Get().GetListenHost(), bSSL, SOMAXCONN, pListenSock);
}
void AddSock(CWebAdminSock* pSock) {