mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-10-22 06:53:46 +00:00
Listening at 0.0.0.0 by default
This commit is contained in:
+3
-3
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user