mirror of
https://github.com/SagerNet/sing-tun.git
synced 2025-04-03 03:47:39 +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 {
|
||||
err := m.checkUpdate()
|
||||
if err != nil {
|
||||
m.logger.Error("initialize default interface: ", err)
|
||||
}
|
||||
_ = m.checkUpdate()
|
||||
m.element = m.networkMonitor.RegisterCallback(m.delayCheckUpdate)
|
||||
return nil
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue