From 28a4e968f436c7a122892a0d6d05a9721d058853 Mon Sep 17 00:00:00 2001 From: Benyamin <149029835+Benyamin-Tehrani@users.noreply.github.com> Date: Wed, 13 Nov 2024 10:27:26 +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