]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix ipv6 enabled squidclient.
authorHenrik Nordstrom <hno@squid-cache.org>
Wed, 17 Oct 2012 00:12:40 +0000 (18:12 -0600)
committerAmos Jeffries <squid3@treenet.co.nz>
Wed, 17 Oct 2012 00:12:40 +0000 (18:12 -0600)
Was failing with assertion failure due to ipv6 support not being probed
automatically.

tools/squidclient.cc

index f75dceb4e43d326ce6b3fb8f97d7c08876bfa6c0..6d204743f0d84106e4aee6b15781be033888da52 100644 (file)
@@ -35,6 +35,7 @@
 #include "squid.h"
 #include "base64.h"
 #include "ip/Address.h"
+#include "ip/tools.h"
 #include "rfc1123.h"
 #include "SquidTime.h"
 
@@ -246,6 +247,7 @@ main(int argc, char *argv[])
     pcount = 0;
     ping_int = 1 * 1000;
 
+    Ip::ProbeTransport(); // determine IPv4 or IPv6 capabilities before parsing.
     if (argc < 2) {
         usage(argv[0]);                /* need URL */
     } else if (argc >= 2) {