mirror of
https://github.com/SagerNet/sing-tun.git
synced 2025-04-03 03:47:39 +03:00
Fix android route
This commit is contained in:
parent
6a00851c2b
commit
057dd738a7
1 changed files with 1 additions and 1 deletions
|
@ -279,7 +279,7 @@ func (t *NativeTun) rules() []*netlink.Rule {
|
|||
|
||||
if runtime.GOOS == "android" && t.options.InterfaceMonitor.AndroidVPNEnabled() {
|
||||
const protectedFromVPN = 0x20000
|
||||
if p6 || t.options.StrictRoute {
|
||||
if p4 || t.options.StrictRoute {
|
||||
it = netlink.NewRule()
|
||||
if t.options.InterfaceMonitor.OverrideAndroidVPN() {
|
||||
it.Mark = protectedFromVPN
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue