--bindhost help
authorJagger <robert@swiecki.net>
Fri, 11 Mar 2016 01:57:02 +0000 (02:57 +0100)
committerJagger <robert@swiecki.net>
Fri, 11 Mar 2016 01:57:02 +0000 (02:57 +0100)
cmdline.c

index 5afe077e39da0fcfd448e827d19115b478b0ef0c..a99ff21c2136fe12748ed90992bb72abffce6b5c 100644 (file)
--- a/cmdline.c
+++ b/cmdline.c
@@ -314,7 +314,7 @@ bool cmdlineParse(int argc, char *argv[], struct nsjconf_t * nsjconf)
                {{"hostname", required_argument, NULL, 'H'}, "UTS name (hostname) of the jail (default: 'NSJAIL')"},
                {{"cwd", required_argument, NULL, 'D'}, "Directory in the namespace the process will run (default: '/')"},
                {{"port", required_argument, NULL, 'p'}, "TCP port to bind to (only in [MODE_LISTEN_TCP]) (default: 31337)"},
-               {{"bindhost", required_argument, NULL, 0x604}, "IP address port to bind to (only in [MODE_LISTEN_TCP]) (default: '::')"},
+               {{"bindhost", required_argument, NULL, 0x604}, "IP address port to bind to (only in [MODE_LISTEN_TCP]), '::ffff:127.0.0.1' for locahost (default: '::')"},
                {{"max_conns_per_ip", required_argument, NULL, 'i'}, "Maximum number of connections per one IP (default: 0 (unlimited))"},
                {{"log", required_argument, NULL, 'l'}, "Log file (default: /proc/self/fd/2)"},
                {{"time_limit", required_argument, NULL, 't'}, "Maximum time that a jail can exist, in seconds (default: 600)"},