Fail dual stack test sends with the platform's own unreachable error

This commit is contained in:
JackDoan committed 2026-10-20 14:23:36 -05:00
1 parent b69cf4ecb4
commit 995f22ca53
3 files changed
+8 -3

No files matched your search

+3
View File
@@ -7,6 +7,9 @@ import (
"syscall"
)
// errNetUnreachable is the error this platform's sockets give for a destination with no route
var errNetUnreachable error = syscall.ENETUNREACH
// IsUnreachable reports whether a send failed because this host has no way to reach the destination from where it
// is now, rather than for something transient. Moving from a dual stack network to one without IPv6 turns every send
// to an IPv6 remote into one of these.