fix err while connect invalid fqdn

This commit is contained in:
yihaoDeng 2023-07-24 18:49:13 +08:00
parent 2aacee05be
commit 6532afa7b8
1 changed files with 1 additions and 1 deletions

View File

@ -106,7 +106,7 @@ STscObj* taos_connect_internal(const char* ip, const char* user, const char* pas
SCorEpSet epSet = {0}; SCorEpSet epSet = {0};
if (ip) { if (ip) {
if (initEpSetFromCfg(ip, tsSecond, &epSet) < 0) { if (initEpSetFromCfg(ip, NULL, &epSet) < 0) {
return NULL; return NULL;
} }
} else { } else {