Skip to content

Commit a09dabb

Browse files
Fix android routing rules about vpn protection (#2)
1 parent 53606a7 commit a09dabb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tun_linux.go

+2
Original file line numberDiff line numberDiff line change
@@ -578,6 +578,7 @@ func (t *NativeTun) rules() []*netlink.Rule {
578578
it = netlink.NewRule()
579579
if t.options.InterfaceMonitor.OverrideAndroidVPN() {
580580
it.Mark = protectedFromVPN
581+
it.MarkSet = true
581582
}
582583
it.Mask = protectedFromVPN
583584
it.Priority = priority
@@ -590,6 +591,7 @@ func (t *NativeTun) rules() []*netlink.Rule {
590591
it = netlink.NewRule()
591592
if t.options.InterfaceMonitor.OverrideAndroidVPN() {
592593
it.Mark = protectedFromVPN
594+
it.MarkSet = true
593595
}
594596
it.Mask = protectedFromVPN
595597
it.Family = unix.AF_INET6

0 commit comments

Comments
 (0)