mirror of
https://github.com/SagerNet/sing-tun.git
synced 2025-04-02 11:27:39 +03:00
Fix wrong condition on interface check
This commit is contained in:
parent
c21c623174
commit
618d3f9a52
1 changed files with 1 additions and 1 deletions
|
@ -108,7 +108,7 @@ func (m *defaultInterfaceMonitor) checkUpdate() error {
|
|||
return E.Cause(err, "find updated interface: ", alias)
|
||||
}
|
||||
m.defaultInterface.Store(newInterface)
|
||||
if oldInterface != nil && !oldInterface.Equals(*newInterface) {
|
||||
if oldInterface != nil && oldInterface.Equals(*newInterface) {
|
||||
return nil
|
||||
}
|
||||
m.emit(newInterface, 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue