mirror of
https://github.com/SagerNet/sing-tun.git
synced 2025-12-24 13:18:21 +08:00
Apply ping destination filter for Windows
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user