output bugs

fix  bug: 
initialize ciphers... (null)
listening at (null):8388
This commit is contained in:
KrazyIvan
2015-01-23 20:27:19 +08:00
parent 5c7e9951b2
commit a9c12d0f6f
+5 -1
View File
@@ -1145,6 +1145,10 @@ int main(int argc, char **argv)
exit(EXIT_FAILURE);
}
if (method == 0) {
method = "table";
}
if (timeout == NULL) {
timeout = "60";
}
@@ -1219,7 +1223,7 @@ int main(int argc, char **argv)
FATAL("listen() error");
}
setnonblocking(listenfd);
LOGI("listening at %s:%s", host, server_port);
LOGI("listening at %s:%s", host?host:"", server_port);
struct listen_ctx *listen_ctx = &listen_ctx_list[index];