mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
[svn] Don't reference opt.ipv4_only and opt.ipv6_only if IPv6 is disabled.
This commit is contained in:
parent
3792aa7058
commit
bbcdd71484
@ -1,3 +1,8 @@
|
|||||||
|
2003-11-19 Hrvoje Niksic <hniksic@xemacs.org>
|
||||||
|
|
||||||
|
* main.c (main): Don't reference opt.ipv4_only and opt.ipv6_only
|
||||||
|
if IPv6 is disabled.
|
||||||
|
|
||||||
2003-11-19 Hrvoje Niksic <hniksic@xemacs.org>
|
2003-11-19 Hrvoje Niksic <hniksic@xemacs.org>
|
||||||
|
|
||||||
* connect.c (socket_has_inet6): Only compile it if IPv6 is enabled
|
* connect.c (socket_has_inet6): Only compile it if IPv6 is enabled
|
||||||
|
@ -807,12 +807,14 @@ Can't timestamp and not clobber old files at the same time.\n"));
|
|||||||
print_usage ();
|
print_usage ();
|
||||||
exit (1);
|
exit (1);
|
||||||
}
|
}
|
||||||
|
#ifdef ENABLE_IPV6
|
||||||
if (opt.ipv4_only && opt.ipv6_only)
|
if (opt.ipv4_only && opt.ipv6_only)
|
||||||
{
|
{
|
||||||
printf (_("Cannot specify both --inet4-only and --inet6-only.\n"));
|
printf (_("Cannot specify both --inet4-only and --inet6-only.\n"));
|
||||||
print_usage ();
|
print_usage ();
|
||||||
exit (1);
|
exit (1);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
nurl = argc - optind;
|
nurl = argc - optind;
|
||||||
if (!nurl && !opt.input_filename)
|
if (!nurl && !opt.input_filename)
|
||||||
|
Loading…
Reference in New Issue
Block a user