fix(rpc): fix duplicat port error
This commit is contained in:
parent
97f00c0e8a
commit
205c92e472
|
@ -746,7 +746,8 @@ bool taosValidIpAndPort(uint32_t ip, uint16_t port) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
taosCloseSocket(&pSocket);
|
taosCloseSocket(&pSocket);
|
||||||
return 0 == taosValidIp(ip) ? true : false;
|
return true;
|
||||||
|
// return 0 == taosValidIp(ip) ? true : false;
|
||||||
}
|
}
|
||||||
TdSocketServerPtr taosOpenTcpServerSocket(uint32_t ip, uint16_t port) {
|
TdSocketServerPtr taosOpenTcpServerSocket(uint32_t ip, uint16_t port) {
|
||||||
struct sockaddr_in serverAdd;
|
struct sockaddr_in serverAdd;
|
||||||
|
|
Loading…
Reference in New Issue