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