fix(rpc): fix duplicat port error
This commit is contained in:
parent
ce77983ff2
commit
97f00c0e8a
|
@ -692,12 +692,13 @@ int taosValidIp(uint32_t ip) {
|
|||
if (ret != 0) {
|
||||
break;
|
||||
}
|
||||
ifreq++;
|
||||
}
|
||||
ret = -1;
|
||||
if (ip == (uint32_t)taosInetAddr(ip_str)) {
|
||||
ret = 0;
|
||||
break;
|
||||
}
|
||||
ifreq++;
|
||||
}
|
||||
}
|
||||
taosCloseSocketNoCheck1(fd);
|
||||
return ret;
|
||||
|
|
Loading…
Reference in New Issue