mirror of
https://github.com/znc/znc.git
synced 2026-05-03 03:52:33 +02:00
Update Csocket to 71dac61
Csocket has received a bunch of const correctness fixes. Notice that the signature of one virtual method, Csock::ConvertAddress(), has changed => CZNCSock has been updated accordingly.
This commit is contained in:
@@ -36,7 +36,7 @@ unsigned int CSockManager::GetAnonConnectionCount(const CString &sIP) const {
|
||||
return ret;
|
||||
}
|
||||
|
||||
int CZNCSock::ConvertAddress(const struct sockaddr_storage * pAddr, socklen_t iAddrLen, CS_STRING & sIP, u_short * piPort) {
|
||||
int CZNCSock::ConvertAddress(const struct sockaddr_storage * pAddr, socklen_t iAddrLen, CS_STRING & sIP, u_short * piPort) const {
|
||||
int ret = Csock::ConvertAddress(pAddr, iAddrLen, sIP, piPort);
|
||||
if (ret == 0)
|
||||
sIP.TrimPrefix("::ffff:");
|
||||
|
||||
Reference in New Issue
Block a user