Fix the issue #120, Set the default listening IP address to 0.0.0.0

This commit is contained in:
slguan 2019-07-19 18:57:06 +08:00
parent 9eb22a3770
commit 7270de4ca2
3 changed files with 2 additions and 10 deletions

View File

@ -56,7 +56,7 @@ int mgmtInitShell() {
if (numOfThreads < 1) numOfThreads = 1;
memset(&rpcInit, 0, sizeof(rpcInit));
rpcInit.localIp = tsInternalIp;
rpcInit.localIp = "0.0.0.0";
rpcInit.localPort = tsMgmtShellPort;
rpcInit.label = "MND-shell";
rpcInit.numOfThreads = numOfThreads;

View File

@ -114,7 +114,7 @@ int vnodeInitShell() {
if (numOfThreads < 1) numOfThreads = 1;
memset(&rpcInit, 0, sizeof(rpcInit));
rpcInit.localIp = tsInternalIp;
rpcInit.localIp = "0.0.0.0";
rpcInit.localPort = tsVnodeShellPort;
rpcInit.label = "DND-shell";
rpcInit.numOfThreads = numOfThreads;

View File

@ -668,10 +668,6 @@ bool tsReadGlobalConfig() {
taosGetPrivateIp(tsInternalIp);
}
if (tsLocalIp[0] == 0) {
strcpy(tsLocalIp, tsInternalIp);
}
taosGetSystemInfo();
tsSetLocale();
@ -685,10 +681,6 @@ bool tsReadGlobalConfig() {
tsNumOfCores = 1;
}
if (tscEmbedded) {
strcpy(tsLocalIp, tsInternalIp);
}
tsVersion = 0;
for (int i = 0; i < 10; i++) {
if (version[i] >= '0' && version[i] <= '9') {