Skip to content

Commit

Permalink
Fix android routing rules about vpn protection
Browse files Browse the repository at this point in the history
  • Loading branch information
Benyamin-Tehrani authored Nov 13, 2024
1 parent b2b56ff commit 28a4e96
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tun_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 28a4e96

Please sign in to comment.