mirror of
https://github.com/SagerNet/sing-tun.git
synced 2025-04-03 03:47:39 +03:00
Remove defaultInterfaceName when no route
This commit is contained in:
parent
7545dc2d56
commit
9c933ea553
1 changed files with 1 additions and 0 deletions
|
@ -81,6 +81,7 @@ func (m *defaultInterfaceMonitor) delayCheckUpdate() {
|
|||
}
|
||||
err = m.checkUpdate()
|
||||
if errors.Is(err, ErrNoRoute) {
|
||||
m.defaultInterfaceName = ""
|
||||
m.defaultInterfaceIndex = -1
|
||||
m.emit(EventNoRoute)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue