Merge pull request #12266 from taosdata/fix/invaldFqdn
fix(rpc): avoid invalid fqdn
This commit is contained in:
commit
903f4f91da
|
@ -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