Browse Source

Listening at 0.0.0.0 by default

pull/1329/head
Max Lv 7 years ago
parent
commit
3f1337540e
1 changed files with 3 additions and 3 deletions
  1. 6
      src/server.c

6
src/server.c

@ -1566,7 +1566,7 @@ main(int argc, char **argv)
} }
if (server_num == 0) { if (server_num == 0) {
server_host[server_num++] = NULL;
server_host[server_num++] = "0.0.0.0";
} }
if (server_num == 0 || server_port == NULL if (server_num == 0 || server_port == NULL
@ -1725,7 +1725,7 @@ main(int argc, char **argv)
if (host && strcmp(host, ":") > 0) if (host && strcmp(host, ":") > 0)
LOGI("tcp server listening at [%s]:%s", host, server_port); LOGI("tcp server listening at [%s]:%s", host, server_port);
else 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; if (plugin != NULL) break;
} }
@ -1743,7 +1743,7 @@ main(int argc, char **argv)
if (host && strcmp(host, ":") > 0) if (host && strcmp(host, ":") > 0)
LOGI("udp server listening at [%s]:%s", host, port); LOGI("udp server listening at [%s]:%s", host, port);
else 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);
} }
} }

Loading…
Cancel
Save