mirror of
https://github.com/slackhq/nebula.git
synced 2026-11-16 20:46:52 +01:00
Fail dual stack test sends with the platform's own unreachable error
This commit is contained in:
1 parent
b69cf4ecb4
commit
995f22ca53
3 files changed
+8
-3
No files matched your search
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user