diff --git a/src/client/src/tscSql.c b/src/client/src/tscSql.c index d423b69e4d814705b0789081171bf64f2e5fc9c6..233a37dc5930f8b5d16d608882ced99148493c4f 100644 --- a/src/client/src/tscSql.c +++ b/src/client/src/tscSql.c @@ -64,8 +64,8 @@ TAOS *taos_connect_imp(const char *ip, const char *user, const char *pass, const #ifdef CLUSTER if (ip && ip[0]) { - strcpy(tscMgmtIpList.ipstr[0], ip); - tscMgmtIpList.ip[0] = inet_addr(ip); + strcpy(tscMgmtIpList.ipstr[1], ip); + tscMgmtIpList.ip[1] = inet_addr(ip); } #else if (ip && ip[0]) {