Merge pull request #12266 from taosdata/fix/invaldFqdn

fix(rpc): avoid invalid fqdn
This commit is contained in:
Yihao Deng 2022-05-09 17:13:07 +08:00 committed by GitHub
commit 903f4f91da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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; 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;