From 8379384d379bb63ac70fc46036490122382cbf9c Mon Sep 17 00:00:00 2001 From: Erik Ekman Date: Sun, 24 May 2020 13:41:54 +0200 Subject: [PATCH] Improve usage/help text around finding external IP --- src/iodined.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/iodined.c b/src/iodined.c index 3c07028..7fb53c0 100644 --- a/src/iodined.c +++ b/src/iodined.c @@ -2285,7 +2285,7 @@ static void print_usage(FILE *stream) { fprintf(stream, "Usage: %s [-46cDfsv] [-u user] [-t chrootdir] [-d device] [-m mtu]\n" " [-z context] [-l ipv4 listen address] [-L ipv6 listen address]\n" - " [-p port] [-n external ip] [-b dnsport] [-P password]\n" + " [-p port] [-n auto|external_ip] [-b dnsport] [-P password]\n" " [-F pidfile] [-i max idle time] tunnel_ip[/netmask] topdomain\n", __progname); } @@ -2322,6 +2322,7 @@ static void help(FILE *stream) "(default ::)\n" " -p port to listen on for incoming dns traffic (default 53)\n" " -n ip to respond with to NS queries\n" + " (Use 'auto' to look up external IP via a service)\n" " -b port to forward normal DNS queries to (on localhost)\n" " -P password used for authentication (max 32 chars will be used)\n" " -F pidfile to write pid to a file\n"