mirror of
https://github.com/SagerNet/sing-tun.git
synced 2025-10-04 08:16:44 +08:00
ping: Fix on android
This commit is contained in:
@@ -47,7 +47,7 @@ func connect(privileged bool, controlFunc control.Func, destination netip.Addr)
|
||||
return nil, E.Cause(err, "connect()")
|
||||
}
|
||||
|
||||
if destination.Is4() && runtime.GOOS == "linux" {
|
||||
if destination.Is4() && (runtime.GOOS == "linux" || runtime.GOOS == "android") {
|
||||
//err = unix.SetsockoptInt(fd, unix.IPPROTO_IP, unix.IP_RECVTOS, 1)
|
||||
//if err != nil {
|
||||
// return nil, err
|
||||
|
Reference in New Issue
Block a user