]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix ipv6 enabled squidclient. Was failing with assertion failure due to ipv6 support...
authorHenrik Nordstrom <hno@squid-cache.org>
Tue, 9 Oct 2012 09:00:20 +0000 (11:00 +0200)
committerHenrik Nordstrom <hno@squid-cache.org>
Tue, 9 Oct 2012 09:00:20 +0000 (11:00 +0200)
tools/squidclient.cc

index 8ce10dc7ed0500b9dfc8d5f80f62321aeffd9038..c6d937cdb0981a18ecf18e25c9381a7e377eaf6c 100644 (file)
@@ -33,6 +33,7 @@
 #include "squid.h"
 #include "base64.h"
 #include "ip/Address.h"
+#include "ip/tools.h"
 #include "rfc1123.h"
 #include "SquidTime.h"
 
@@ -243,6 +244,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) {