fix err while connect invalid fqdn

This commit is contained in:
yihaoDeng 2023-07-24 10:28:52 +00:00
parent 95a1db6e89
commit 0b707a108e
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, NULL, &epSet) < 0) { if (initEpSetFromCfg(ip, tsSecond, &epSet) < 0) {
return NULL; return NULL;
} }
} else { } else {