From a065bc0d8ce13071eb6adbcc259e3c2c350c44f7 Mon Sep 17 00:00:00 2001 From: aa65535 Date: Wed, 3 Dec 2014 23:30:35 +0800 Subject: [PATCH] refine error message --- src/tunnel.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/tunnel.c b/src/tunnel.c index f82d2e1b..e1978bc2 100644 --- a/src/tunnel.c +++ b/src/tunnel.c @@ -753,6 +753,10 @@ int main(int argc, char **argv) // parse tunnel addr parse_addr(tunnel_addr_str, &tunnel_addr); + if (tunnel_addr.port == NULL) { + FATAL("tunnel port is not defined."); + } + #ifdef __MINGW32__ winsock_init(); #else