From de74d95932fb61af10c3388105ed305487facb19 Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Thu, 31 Jan 2013 21:58:59 -0700 Subject: [PATCH] Fix ipv6 enabled pinger. Was failing with assertion failure due to ipv6 support not being probed automatically. --- src/icmp/pinger.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/icmp/pinger.cc b/src/icmp/pinger.cc index ee13f7a537..a3bc3045d7 100644 --- a/src/icmp/pinger.cc +++ b/src/icmp/pinger.cc @@ -71,6 +71,7 @@ #include "Icmp4.h" #include "Icmp6.h" #include "IcmpPinger.h" +#include "ip/tools.h" #if _SQUID_MSWIN_ @@ -148,6 +149,9 @@ main(int argc, char *argv[]) getCurrentTime(); + // determine IPv4 or IPv6 capabilities before using sockets. + Ip::ProbeTransport(); + _db_init(NULL, debug_args); debugs(42, 0, "pinger: Initialising ICMP pinger ..."); -- 2.47.2