auto-redirect: Let fw4 take precedence over prerouting

This commit is contained in:
世界 2024-10-08 20:59:12 +08:00
parent 926d6f769e
commit 2f4d2d97f9
No known key found for this signature in database
GPG key ID: CD109927C34A63C4
3 changed files with 7 additions and 6 deletions

View file

@ -338,6 +338,7 @@ func NewRouter(
_ = router.interfaceFinder.Update()
})
interfaceMonitor, err := tun.NewDefaultInterfaceMonitor(router.networkMonitor, router.logger, tun.DefaultInterfaceMonitorOptions{
InterfaceFinder: router.interfaceFinder,
OverrideAndroidVPN: options.OverrideAndroidVPN,
UnderNetworkExtension: platformInterface != nil && platformInterface.UnderNetworkExtension(),
})