From a1e76003ca590ea8d3e9387da35d87419417abb8 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 16 Dec 2016 12:30:12 +0100 Subject: [PATCH] disambiguate option flag -l --- doc/man/gnunet-nat.1 | 2 +- src/nat/gnunet-nat.c | 2 +- src/nat/nat_api.c | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/doc/man/gnunet-nat.1 b/doc/man/gnunet-nat.1 index bfd1e5bcf..a43223fa8 100644 --- a/doc/man/gnunet-nat.1 +++ b/doc/man/gnunet-nat.1 @@ -31,7 +31,7 @@ Use the configuration file FILENAME. Assume that ADDRESS is the globally visible address of the peer. .B -.IP "\-l ADDRESS, \-\-local=ADDRESS" +.IP "\-i ADDRESS, \-\-in=ADDRESS" Assuming we are listening at ADDRESS for connection reversal requests. .B diff --git a/src/nat/gnunet-nat.c b/src/nat/gnunet-nat.c index 07e65141b..10921150d 100644 --- a/src/nat/gnunet-nat.c +++ b/src/nat/gnunet-nat.c @@ -610,7 +610,7 @@ main (int argc, {'e', "external", "ADDRESS", gettext_noop ("which external IP and port should be used to test"), GNUNET_YES, &GNUNET_GETOPT_set_string, &extern_addr }, - {'l', "local", "ADDRESS", + {'i', "in", "ADDRESS", gettext_noop ("which IP and port are we locally using to listen to for connection reversals"), GNUNET_YES, &GNUNET_GETOPT_set_string, &local_addr }, {'r', "remote", "ADDRESS", diff --git a/src/nat/nat_api.c b/src/nat/nat_api.c index 798da0ea6..58ed3e675 100644 --- a/src/nat/nat_api.c +++ b/src/nat/nat_api.c @@ -445,7 +445,6 @@ GNUNET_NAT_register (const struct GNUNET_CONFIGURATION_Handle *cfg, nh->reversal_callback = reversal_callback; nh->callback_cls = callback_cls; do_connect (nh); - GNUNET_break (0); return nh; } -- 2.25.1