mirror of
https://github.com/znc/znc.git
synced 2026-08-07 17:33:34 +02:00
Rename "vhost" to "bindhost"
"virtual host" seems to be confusing to users since they wonder why i.am.superman doesn't work. Let's rename this to "bindhost" and perhaps it becomes clearer what this setting does. Thanks to SilverLeo! git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2113 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
+3
-3
@@ -94,11 +94,11 @@ bool CSocket::Connect(const CString& sHostname, unsigned short uPort, bool bSSL,
|
||||
|
||||
CUser* pUser = m_pModule->GetUser();
|
||||
CString sSockName = "MOD::C::" + m_pModule->GetModName();
|
||||
CString sVHost;
|
||||
CString sBindHost;
|
||||
|
||||
if (pUser) {
|
||||
sSockName += "::" + pUser->GetUserName();
|
||||
sVHost = m_pModule->GetUser()->GetVHost();
|
||||
sBindHost = m_pModule->GetUser()->GetBindHost();
|
||||
}
|
||||
|
||||
// Don't overwrite the socket name if one is already set
|
||||
@@ -106,7 +106,7 @@ bool CSocket::Connect(const CString& sHostname, unsigned short uPort, bool bSSL,
|
||||
sSockName = GetSockName();
|
||||
}
|
||||
|
||||
return m_pModule->GetManager()->Connect(sHostname, uPort, sSockName, uTimeout, bSSL, sVHost, this);
|
||||
return m_pModule->GetManager()->Connect(sHostname, uPort, sSockName, uTimeout, bSSL, sBindHost, this);
|
||||
}
|
||||
|
||||
bool CSocket::Listen(unsigned short uPort, bool bSSL, unsigned int uTimeout) {
|
||||
|
||||
Reference in New Issue
Block a user