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) {
|
if (ret != 0) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
ifreq++;
|
ret = -1;
|
||||||
}
|
|
||||||
if (ip == (uint32_t)taosInetAddr(ip_str)) {
|
if (ip == (uint32_t)taosInetAddr(ip_str)) {
|
||||||
ret = 0;
|
ret = 0;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
ifreq++;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
taosCloseSocketNoCheck1(fd);
|
taosCloseSocketNoCheck1(fd);
|
||||||
return ret;
|
return ret;
|
||||||
|
|
Loading…
Reference in New Issue