From 1ef6142b7484ffac4bebbf77b1f9317f82cf1a94 Mon Sep 17 00:00:00 2001 From: Trekkie Coder Date: Wed, 18 Dec 2024 16:47:25 +0900 Subject: [PATCH] Fixed probes for ep6 --- serviceprobe.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/serviceprobe.go b/serviceprobe.go index bd513b3..b5e17a6 100644 --- a/serviceprobe.go +++ b/serviceprobe.go @@ -49,7 +49,9 @@ func waitForBoolChannelOrTimeout(ch <-chan bool, timeout time.Duration) (bool, b func listenForICMP6UNreachable() { conn, err := icmp.ListenPacket("ip6:ipv6-icmp", "::") if err != nil { - os.Exit(1) + // This can be due to ipv6 not enabled + // In such a case probes for udp6 will not be available + return } defer conn.Close()