diff --git a/source/client/src/clientImpl.c b/source/client/src/clientImpl.c index 7c873acadb..cf2a91aa02 100644 --- a/source/client/src/clientImpl.c +++ b/source/client/src/clientImpl.c @@ -103,6 +103,7 @@ TAOS* taos_connect_internal(const char* ip, const char* user, const char* pass, if (port) { epSet.epSet.eps[0].port = port; + epSet.epSet.eps[1].port = port; } char* key = getClusterKey(user, secretEncrypt, ip, port);