Update server.c (#898)

Friendlize init message while listen on an IPv6 address.
This commit is contained in:
Kim
2016-10-25 20:19:30 +08:00
committed by Max Lv
parent e49d3e93bb
commit 31e30e35ba
+4 -1
View File
@@ -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) {