Skip to content

Commit e9e3fbf

Browse files
committed
Apply ping destination filter for Windows
1 parent 20161f3 commit e9e3fbf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ping/destination.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ func (d *Destination) WritePacket(packet *buf.Buffer) error {
189189
}
190190

191191
func (d *Destination) needFilter() bool {
192-
return runtime.GOOS != "windows" && !d.conn.isLinuxUnprivileged()
192+
return !d.conn.isLinuxUnprivileged()
193193
}
194194

195195
func (d *Destination) registerRequest(request pingRequest) {

0 commit comments

Comments
 (0)