From 0b707a108e1f989290caeb558f4fa3867cb0c452 Mon Sep 17 00:00:00 2001 From: yihaoDeng Date: Mon, 24 Jul 2023 10:28:52 +0000 Subject: [PATCH] fix err while connect invalid fqdn --- source/client/src/clientImpl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/client/src/clientImpl.c b/source/client/src/clientImpl.c index f5dc627dd8..6b89739547 100644 --- a/source/client/src/clientImpl.c +++ b/source/client/src/clientImpl.c @@ -106,7 +106,7 @@ STscObj* taos_connect_internal(const char* ip, const char* user, const char* pas SCorEpSet epSet = {0}; if (ip) { - if (initEpSetFromCfg(ip, NULL, &epSet) < 0) { + if (initEpSetFromCfg(ip, tsSecond, &epSet) < 0) { return NULL; } } else {