mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-10-23 08:03:54 +00:00
Update server.c (#898)
Friendlize init message while listen on an IPv6 address.
This commit is contained in:
+4
-1
@@ -1782,7 +1782,10 @@ main(int argc, char **argv)
|
||||
auth, atoi(timeout), iface);
|
||||
}
|
||||
|
||||
LOGI("listening at %s:%s", host ? host : "*", server_port);
|
||||
if (host && strcmp(host, ":") > 0)
|
||||
LOGI("listening at [%s]:%s", host, server_port);
|
||||
else
|
||||
LOGI("listening at %s:%s", host ? host : "*", server_port);
|
||||
}
|
||||
|
||||
if (manager_address != NULL) {
|
||||
|
||||
Reference in New Issue
Block a user