]> sjero.net Git - wget/blobdiff - src/options.h
[svn] Added reordering of addresses to try IPv4 first and the associated
[wget] / src / options.h
index 90f9fc3a1f95ba94a608feb5217764a3bda67fd7..d4140a0c534cdd39990b8b95cb10b5b4d60c9993 100644 (file)
@@ -197,6 +197,12 @@ struct options
   int ipv4_only;               /* IPv4 connections have been requested. */
   int ipv6_only;               /* IPv4 connections have been requested. */
 #endif
+  enum {
+    prefer_ipv4,
+    prefer_ipv6,
+    prefer_none
+  } prefer_family;             /* preferred address family when more
+                                  than one type is available */
 };
 
 extern struct options opt;