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); } }