From 495722f2bebb135c7e095ebfccac09ec5048a9de Mon Sep 17 00:00:00 2001 From: Max Lv Date: Sat, 4 Mar 2017 09:25:12 +0800 Subject: [PATCH] Listening at 0.0.0.0 by default --- src/server.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/server.c b/src/server.c index ff24b217..59659a84 100644 --- a/src/server.c +++ b/src/server.c @@ -1566,7 +1566,7 @@ main(int argc, char **argv) } if (server_num == 0) { - server_host[server_num++] = NULL; + server_host[server_num++] = "0.0.0.0"; } if (server_num == 0 || server_port == NULL @@ -1725,7 +1725,7 @@ main(int argc, char **argv) if (host && strcmp(host, ":") > 0) LOGI("tcp server listening at [%s]:%s", host, server_port); else - LOGI("tcp server listening at %s:%s", host ? host : "*", server_port); + LOGI("tcp server listening at %s:%s", host ? host : "0.0.0.0", server_port); if (plugin != NULL) break; } @@ -1743,7 +1743,7 @@ main(int argc, char **argv) if (host && strcmp(host, ":") > 0) LOGI("udp server listening at [%s]:%s", host, port); else - LOGI("udp server listening at %s:%s", host ? host : "*", port); + LOGI("udp server listening at %s:%s", host ? host : "0.0.0.0", port); } }