fix(rpc): fix invalide fqdn

This commit is contained in:
yihaoDeng 2022-05-07 18:42:15 +08:00
parent c36f56a77d
commit f45cb19a15
1 changed files with 2 additions and 1 deletions

View File

@ -850,7 +850,8 @@ void* transInitServer(uint32_t ip, uint32_t port, char* label, int numOfThreads,
} }
} }
if (false == taosValidIpAndPort(srv->ip, srv->port)) { if (false == taosValidIpAndPort(srv->ip, srv->port)) {
tError("failed to bind, reason: %s", strerror(TAOS_SYSTEM_ERROR(errno))); terrno = TAOS_SYSTEM_ERROR(errno);
tError("invalid ip/port, reason: %s", terrstr());
goto End; goto End;
} }
if (false == addHandleToAcceptloop(srv)) { if (false == addHandleToAcceptloop(srv)) {