提交 7270de4c 编写于 作者: S slguan

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

上级 9eb22a37
...@@ -56,7 +56,7 @@ int mgmtInitShell() { ...@@ -56,7 +56,7 @@ int mgmtInitShell() {
if (numOfThreads < 1) numOfThreads = 1; if (numOfThreads < 1) numOfThreads = 1;
memset(&rpcInit, 0, sizeof(rpcInit)); memset(&rpcInit, 0, sizeof(rpcInit));
rpcInit.localIp = tsInternalIp; rpcInit.localIp = "0.0.0.0";
rpcInit.localPort = tsMgmtShellPort; rpcInit.localPort = tsMgmtShellPort;
rpcInit.label = "MND-shell"; rpcInit.label = "MND-shell";
rpcInit.numOfThreads = numOfThreads; rpcInit.numOfThreads = numOfThreads;
......
...@@ -114,7 +114,7 @@ int vnodeInitShell() { ...@@ -114,7 +114,7 @@ int vnodeInitShell() {
if (numOfThreads < 1) numOfThreads = 1; if (numOfThreads < 1) numOfThreads = 1;
memset(&rpcInit, 0, sizeof(rpcInit)); memset(&rpcInit, 0, sizeof(rpcInit));
rpcInit.localIp = tsInternalIp; rpcInit.localIp = "0.0.0.0";
rpcInit.localPort = tsVnodeShellPort; rpcInit.localPort = tsVnodeShellPort;
rpcInit.label = "DND-shell"; rpcInit.label = "DND-shell";
rpcInit.numOfThreads = numOfThreads; rpcInit.numOfThreads = numOfThreads;
......
...@@ -668,10 +668,6 @@ bool tsReadGlobalConfig() { ...@@ -668,10 +668,6 @@ bool tsReadGlobalConfig() {
taosGetPrivateIp(tsInternalIp); taosGetPrivateIp(tsInternalIp);
} }
if (tsLocalIp[0] == 0) {
strcpy(tsLocalIp, tsInternalIp);
}
taosGetSystemInfo(); taosGetSystemInfo();
tsSetLocale(); tsSetLocale();
...@@ -685,10 +681,6 @@ bool tsReadGlobalConfig() { ...@@ -685,10 +681,6 @@ bool tsReadGlobalConfig() {
tsNumOfCores = 1; tsNumOfCores = 1;
} }
if (tscEmbedded) {
strcpy(tsLocalIp, tsInternalIp);
}
tsVersion = 0; tsVersion = 0;
for (int i = 0; i < 10; i++) { for (int i = 0; i < 10; i++) {
if (version[i] >= '0' && version[i] <= '9') { if (version[i] >= '0' && version[i] <= '9') {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册