fix: mac get ip issue

This commit is contained in:
dapan1121 2024-07-25 17:48:45 +08:00
parent 11dea101d1
commit bd55075948
1 changed files with 1 additions and 1 deletions

View File

@ -1000,7 +1000,7 @@ int32_t taosGetIpv4FromFqdn(const char *fqdn, uint32_t* ip) {
struct in_addr ia = si->sin_addr; struct in_addr ia = si->sin_addr;
uint32_t ip = ia.s_addr; uint32_t ip = ia.s_addr;
freeaddrinfo(result); freeaddrinfo(result);
return ip; return 0;
} else { } else {
#ifdef EAI_SYSTEM #ifdef EAI_SYSTEM
if (ret == EAI_SYSTEM) { if (ret == EAI_SYSTEM) {