Fix check interface

This commit is contained in:
世界 2024-11-12 14:29:11 +08:00
parent 6a7c4036d3
commit 64c0f526fd
No known key found for this signature in database
GPG key ID: CD109927C34A63C4
6 changed files with 7 additions and 7 deletions

View file

@ -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 {