提交 205c92e4 编写于 作者: dengyihao's avatar dengyihao

fix(rpc): fix duplicat port error

上级 97f00c0e
...@@ -746,7 +746,8 @@ bool taosValidIpAndPort(uint32_t ip, uint16_t port) { ...@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册