mirror of
https://github.com/SagerNet/sing-tun.git
synced 2026-04-23 00:17:19 +08:00
Improve monitor api
This commit is contained in:
@@ -34,7 +34,7 @@ func (m *defaultInterfaceMonitor) checkUpdate() error {
|
||||
if oldInterface == m.defaultInterfaceName && oldIndex == m.defaultInterfaceIndex {
|
||||
return nil
|
||||
}
|
||||
m.callback()
|
||||
m.emit()
|
||||
return nil
|
||||
}
|
||||
return E.New("no route to internet")
|
||||
|
||||
Reference in New Issue
Block a user