mirror of
https://github.com/SagerNet/sing-tun.git
synced 2025-04-02 03:17:38 +03:00
Fix android routing rules about vpn protection
This commit is contained in:
parent
b8b3759826
commit
8a18f0c99e
1 changed files with 2 additions and 0 deletions
|
@ -592,6 +592,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
|
||||
|
@ -604,6 +605,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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue