]> sjero.net Git - wget/commitdiff
[svn] Enable -4 and -6 switches only when IPv6 is enabled.
authorhniksic <devnull@localhost>
Fri, 14 Nov 2003 15:18:47 +0000 (07:18 -0800)
committerhniksic <devnull@localhost>
Fri, 14 Nov 2003 15:18:47 +0000 (07:18 -0800)
src/ChangeLog
src/main.c

index 5f7e12f9980e5ec30931ed45f0f0fc23da5f0aca..7768b9a0f3c99802b113aeff733a77dd321ca5d2 100644 (file)
@@ -1,3 +1,7 @@
+2003-11-14  Hrvoje Niksic  <hniksic@xemacs.org>
+
+       * main.c: Enable -4 and -6 only if IPv6 is enabled.
+
 2003-11-14  Hrvoje Niksic  <hniksic@xemacs.org>
 
        * connect.c (register_transport): Renamed from register_extended.
index eb6570ab8e4ad2023dcd1e48bd81e492e5318c6a..1e7641c273c285246e2e3422f8249f2d3b8b7da6 100644 (file)
@@ -194,8 +194,10 @@ struct cmdline_option option_data[] =
     { "ignore-length", 0, OPT_BOOLEAN, "ignorelength", -1 },
     { "ignore-tags", 0, OPT_VALUE, "ignoretags", -1 },
     { "include-directories", 'I', OPT_VALUE, "includedirectories", -1 },
+#ifdef ENABLE_IPV6
     { "inet4-only", '4', OPT_BOOLEAN, "inet4only", -1 },
     { "inet6-only", '6', OPT_BOOLEAN, "inet6only", -1 },
+#endif
     { "input-file", 'i', OPT_VALUE, "input", -1 },
     { "keep-session-cookies", 0, OPT_BOOLEAN, "keepsessioncookies", -1 },
     { "level", 'l', OPT_VALUE, "reclevel", -1 },
@@ -455,10 +457,12 @@ Download:\n"),
        --dns-cache=off           disable caching DNS lookups.\n"),
     N_("\
        --restrict-file-names=OS  restrict chars in file names to ones OS allows.\n"),
+#ifdef ENABLE_IPV6
     N_("\
   -4,  --inet4-only              connect only to IPv4 addresses.\n"),
     N_("\
   -6,  --inet6-only              connect only to IPv6 addresses.\n"),
+#endif
     "\n",
 
     N_("\