mirror of
https://github.com/SagerNet/sing-tun.git
synced 2025-04-03 03:47:39 +03:00
Fix check interface
This commit is contained in:
parent
6a7c4036d3
commit
64c0f526fd
6 changed files with 7 additions and 7 deletions
|
@ -58,7 +58,7 @@ func (m *defaultInterfaceMonitor) checkUpdate() error {
|
|||
}
|
||||
m.defaultInterface.Store(newInterface)
|
||||
var event int
|
||||
if oldInterface == nil || oldInterface.Name != newInterface.Name || oldInterface.Index != newInterface.Index {
|
||||
if oldInterface == nil || !oldInterface.Equals(*newInterface) {
|
||||
event |= EventInterfaceUpdate
|
||||
}
|
||||
if oldVPNEnabled != m.androidVPNEnabled {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue