disambiguate option flag -l
authorChristian Grothoff <christian@grothoff.org>
Fri, 16 Dec 2016 11:30:12 +0000 (12:30 +0100)
committerChristian Grothoff <christian@grothoff.org>
Fri, 16 Dec 2016 11:30:12 +0000 (12:30 +0100)
doc/man/gnunet-nat.1
src/nat/gnunet-nat.c
src/nat/nat_api.c

index bfd1e5bcf9486096c6b7f2bc0c85a2ab9a2bfaca..a43223fa8d1b857dd8830459c2cd6fcd9bbc32b2 100644 (file)
@@ -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
index 07e65141bb0eebd7d501cf3e4a183ceef8dc1a18..10921150d8a1a9d250b762f96df80b32c7efa0c3 100644 (file)
@@ -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",
index 798da0ea6ea42ea1e1e1cf63510fb4a3fd745551..58ed3e67509488a82a85b7ff7f5463bd87b26825 100644 (file)
@@ -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;
 }