mirror of
https://github.com/SagerNet/sing-tun.git
synced 2025-04-05 04:47:41 +03:00
Remove network requirement on start
This commit is contained in:
parent
efd9884154
commit
b93db9639d
1 changed files with 1 additions and 4 deletions
|
@ -65,10 +65,7 @@ func NewDefaultInterfaceMonitor(networkMonitor NetworkUpdateMonitor, logger logg
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *defaultInterfaceMonitor) Start() error {
|
func (m *defaultInterfaceMonitor) Start() error {
|
||||||
err := m.checkUpdate()
|
_ = m.checkUpdate()
|
||||||
if err != nil {
|
|
||||||
m.logger.Error("initialize default interface: ", err)
|
|
||||||
}
|
|
||||||
m.element = m.networkMonitor.RegisterCallback(m.delayCheckUpdate)
|
m.element = m.networkMonitor.RegisterCallback(m.delayCheckUpdate)
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue