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() {
|
if runtime.GOOS == "android" && t.options.InterfaceMonitor.AndroidVPNEnabled() {
|
||||||
const protectedFromVPN = 0x20000
|
const protectedFromVPN = 0x20000
|
||||||
if p6 || t.options.StrictRoute {
|
if p4 || t.options.StrictRoute {
|
||||||
it = netlink.NewRule()
|
it = netlink.NewRule()
|
||||||
if t.options.InterfaceMonitor.OverrideAndroidVPN() {
|
if t.options.InterfaceMonitor.OverrideAndroidVPN() {
|
||||||
it.Mark = protectedFromVPN
|
it.Mark = protectedFromVPN
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue