aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2017-12-19 16:58:16 +0100
committerToni Uhlig <matzeton@googlemail.com>2017-12-19 16:58:16 +0100
commit90d249e7e9661b2b7227d17a7a6ff5c57b846c43 (patch)
tree8f939cc1a71280cb641ef6eae513d53914357368
parent81f3c49c3fc55d05e748ccc376e33eae11003b98 (diff)
ptunnel-ng:
* changed option (--listen) visibility * added TODO
-rw-r--r--src/options.c2
-rw-r--r--src/ptunnel.c1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/options.c b/src/options.c
index 4c749af..bcbc98f 100644
--- a/src/options.c
+++ b/src/options.c
@@ -48,7 +48,7 @@ static const struct option_usage usage[] = {
"option causes ptunnel to operate in proxy mode (Server).\n"
},
/** --listen */
- {"port", 1, OPT_DEC32, {.unum = 2222},
+ {"port", 0, OPT_DEC32, {.unum = 2222},
"Set TCP listening port (only used when operating in forward mode)\n"
},
/** --remote-adr */
diff --git a/src/ptunnel.c b/src/ptunnel.c
index 85f3b5f..b8f022c 100644
--- a/src/ptunnel.c
+++ b/src/ptunnel.c
@@ -167,6 +167,7 @@ int main(int argc, char *argv[]) {
pt_log(kLog_debug, "Destination at %s:%u\n", opts.given_dst_hostname, opts.given_dst_port);
+ /* TODO: Maybe give the user the opportunity to bind to certain addresses e.g. 127.0.0.1 ? */
if (opts.mode == kMode_forward)
pt_log(kLog_debug, "Listen for incoming connections at 0.0.0.0:%u\n", opts.tcp_listen_port);