mirror of
https://gitee.com/TarsCloud/TarsCpp.git
synced 2024-12-22 22:16:38 +08:00
fix ipv6 bug
This commit is contained in:
parent
593875cd9a
commit
13c01023ae
@ -75,7 +75,7 @@ void TC_Socket::createSocket(int iSocketType, int iDomain)
|
||||
|
||||
void TC_Socket::getPeerName(string &sPeerAddress, uint16_t &iPeerPort)
|
||||
{
|
||||
assert(_iDomain == AF_INET && _iDomain == AF_INET6);
|
||||
assert(_iDomain == AF_INET || _iDomain == AF_INET6);
|
||||
|
||||
char sAddr[INET6_ADDRSTRLEN] = "\0";
|
||||
struct sockaddr_in stPeer4;
|
||||
|
Loading…
Reference in New Issue
Block a user