From 27215b3452e1a099cb57f3262ca3d976192236cb Mon Sep 17 00:00:00 2001 From: slguan Date: Thu, 28 Nov 2019 21:58:12 +0800 Subject: [PATCH] [TBASE-1258] --- src/client/src/tscSql.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/src/tscSql.c b/src/client/src/tscSql.c index d423b69e4d..233a37dc59 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]) { -- GitLab