mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
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:
@@ -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