From e9e3fbf0c15e4502baec235066f9dee903ac2b50 Mon Sep 17 00:00:00 2001 From: wwqgtxx Date: Mon, 1 Dec 2025 08:47:38 +0800 Subject: [PATCH] Apply ping destination filter for Windows --- ping/destination.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ping/destination.go b/ping/destination.go index 23db674..60decb4 100644 --- a/ping/destination.go +++ b/ping/destination.go @@ -189,7 +189,7 @@ func (d *Destination) WritePacket(packet *buf.Buffer) error { } func (d *Destination) needFilter() bool { - return runtime.GOOS != "windows" && !d.conn.isLinuxUnprivileged() + return !d.conn.isLinuxUnprivileged() } func (d *Destination) registerRequest(request pingRequest) {