From c627efb43d554756a4485d0ee8199380141e1dfc Mon Sep 17 00:00:00 2001 From: KrazyIvan Date: Sat, 24 Jan 2015 13:29:11 +0800 Subject: [PATCH] Update server.c --- src/server.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/server.c b/src/server.c index abc1b7e8..cb8eb068 100644 --- a/src/server.c +++ b/src/server.c @@ -1145,7 +1145,7 @@ int main(int argc, char **argv) exit(EXIT_FAILURE); } - if (method == 0) { + if (method == NULL) { method = "table"; } @@ -1223,7 +1223,7 @@ int main(int argc, char **argv) FATAL("listen() error"); } setnonblocking(listenfd); - LOGI("listening at %s:%s", host?host:"", server_port); + LOGI("listening at %s:%s", host?host:"*", server_port); struct listen_ctx *listen_ctx = &listen_ctx_list[index];