diff --git a/source/client/src/clientImpl.c b/source/client/src/clientImpl.c index 7c873acadbb349af07533764ac86e126d9910940..cf2a91aa02b8f33899e7116348dc342af5e28bd9 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);