TBASE-1452 #1136
This commit is contained in:
parent
64337a45ba
commit
d4d757c3d0
|
@ -64,8 +64,11 @@ TAOS *taos_connect_imp(const char *ip, const char *user, const char *pass, const
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ip && ip[0]) {
|
if (ip && ip[0]) {
|
||||||
|
tscMgmtIpList.numOfIps = 2;
|
||||||
strcpy(tscMgmtIpList.ipstr[0], ip);
|
strcpy(tscMgmtIpList.ipstr[0], ip);
|
||||||
tscMgmtIpList.ip[0] = inet_addr(ip);
|
tscMgmtIpList.ip[0] = inet_addr(ip);
|
||||||
|
strcpy(tscMgmtIpList.ipstr[1], ip);
|
||||||
|
tscMgmtIpList.ip[1] = inet_addr(ip);
|
||||||
}
|
}
|
||||||
|
|
||||||
pObj = (STscObj *)malloc(sizeof(STscObj));
|
pObj = (STscObj *)malloc(sizeof(STscObj));
|
||||||
|
|
Loading…
Reference in New Issue