mirror of
https://github.com/SagerNet/sing-box.git
synced 2025-04-04 20:37:37 +03:00
Fix check interface
This commit is contained in:
parent
3e246f1173
commit
935beca45d
1 changed files with 0 additions and 3 deletions
|
@ -345,9 +345,6 @@ func NewRouter(
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
router.networkMonitor = networkMonitor
|
router.networkMonitor = networkMonitor
|
||||||
networkMonitor.RegisterCallback(func() {
|
|
||||||
_ = router.interfaceFinder.Update()
|
|
||||||
})
|
|
||||||
interfaceMonitor, err := tun.NewDefaultInterfaceMonitor(router.networkMonitor, router.logger, tun.DefaultInterfaceMonitorOptions{
|
interfaceMonitor, err := tun.NewDefaultInterfaceMonitor(router.networkMonitor, router.logger, tun.DefaultInterfaceMonitorOptions{
|
||||||
InterfaceFinder: router.interfaceFinder,
|
InterfaceFinder: router.interfaceFinder,
|
||||||
OverrideAndroidVPN: options.OverrideAndroidVPN,
|
OverrideAndroidVPN: options.OverrideAndroidVPN,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue