Skip to content

Commit

Permalink
Merge pull request #31 from TrekkieCoder/main
Browse files Browse the repository at this point in the history
PR: Fixed probes for ep6
  • Loading branch information
TrekkieCoder authored Dec 18, 2024
2 parents e6e2cd3 + 706ded2 commit c82d12c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion serviceprobe.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit c82d12c

Please sign in to comment.