From 059d13ed1320559ce6dcc79d7af09ae1304b96f4 Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Sun, 27 Jan 2013 23:20:02 -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 faed28fa3c..995a52d870 100644 --- a/src/icmp/pinger.cc +++ b/src/icmp/pinger.cc @@ -70,6 +70,7 @@ #include "Icmp4.h" #include "Icmp6.h" #include "IcmpPinger.h" +#include "ip/tools.h" #if _SQUID_WINDOWS_ @@ -147,6 +148,9 @@ main(int argc, char *argv[]) getCurrentTime(); + // determine IPv4 or IPv6 capabilities before using sockets. + Ip::ProbeTransport(); + _db_init(NULL, debug_args); debugs(42, DBG_CRITICAL, "pinger: Initialising ICMP pinger ..."); -- 2.47.3