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:
1 parent
3ef968b17e
commit
ef9d9b217a
3 files changed
+43
-10
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user