fix(rpc): fix duplicat port error

This commit is contained in:
yihaoDeng 2022-05-09 15:41:32 +08:00
parent 97f00c0e8a
commit 205c92e472
1 changed files with 2 additions and 1 deletions

View File

@ -746,7 +746,8 @@ bool taosValidIpAndPort(uint32_t ip, uint16_t port) {
return false;
}
taosCloseSocket(&pSocket);
return 0 == taosValidIp(ip) ? true : false;
return true;
// return 0 == taosValidIp(ip) ? true : false;
}
TdSocketServerPtr taosOpenTcpServerSocket(uint32_t ip, uint16_t port) {
struct sockaddr_in serverAdd;