From d83fd7a59cbb9cc8acea11d6de539970c41e6d22 Mon Sep 17 00:00:00 2001 From: Benyamin <149029835+Benyamin-Tehrani@users.noreply.github.com> Date: Fri, 1 Nov 2024 10:11:56 +0800 Subject: [PATCH] Fix android routing rules about vpn protection --- tun_linux.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tun_linux.go b/tun_linux.go index 0c64b15..fc4dfd8 100644 --- a/tun_linux.go +++ b/tun_linux.go @@ -578,6 +578,7 @@ func (t *NativeTun) rules() []*netlink.Rule { it = netlink.NewRule() if t.options.InterfaceMonitor.OverrideAndroidVPN() { it.Mark = protectedFromVPN + it.MarkSet = true } it.Mask = protectedFromVPN it.Priority = priority @@ -590,6 +591,7 @@ func (t *NativeTun) rules() []*netlink.Rule { it = netlink.NewRule() if t.options.InterfaceMonitor.OverrideAndroidVPN() { it.Mark = protectedFromVPN + it.MarkSet = true } it.Mask = protectedFromVPN it.Family = unix.AF_INET6