diff --git a/src/client/src/tscServer.c b/src/client/src/tscServer.c index 63c2b87426..00452d920e 100644 --- a/src/client/src/tscServer.c +++ b/src/client/src/tscServer.c @@ -67,6 +67,7 @@ void tscSetMgmtIpListFromCluster(SIpList *pIpList) { void tscSetMgmtIpListFromEdge() { if (tscMgmtIpList.numOfIps != 2) { + tscMgmtIpList.numOfIps = 2; strcpy(tscMgmtIpList.ipstr[0], tsMasterIp); tscMgmtIpList.ip[0] = inet_addr(tsMasterIp); strcpy(tscMgmtIpList.ipstr[1], tsMasterIp);