wgengine/netstack: fix invocation of ping on illumos/solaris

This commit is contained in:
Nahum Shalman authored and GitHub committed 2026-11-26 08:29:27 -08:00
1 parent f2c476cf17
commit 3ffce79f7b
1 file changed
+3
+3
View File
@@ -56,6 +56,9 @@ func (ns *Impl) sendOutboundUserPing(dstIP netip.Addr, timeout time.Duration) er
ping = "/system/bin/ping6"
}
err = exec.Command(ping, "-c", "1", "-w", "3", dstIP.String()).Run()
case "illumos", "solaris":
// /usr/sbin/ping host [timeout]
err = exec.Command("/usr/sbin/ping", dstIP.String(), "3").Run()
default:
ping := "ping"
if isSynology {