Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7e1f286063 |
@@ -78,12 +78,16 @@ func (m *defaultInterfaceMonitor) checkUpdate() error {
|
||||
continue
|
||||
}
|
||||
|
||||
if ifrow.Type == winipcfg.IfTypePropVirtual || ifrow.Type == winipcfg.IfTypeSoftwareLoopback {
|
||||
continue
|
||||
}
|
||||
|
||||
iface, err := row.InterfaceLUID.IPInterface(windows.AF_INET)
|
||||
if err != nil {
|
||||
continue
|
||||
}
|
||||
|
||||
if ifrow.Type == winipcfg.IfTypePropVirtual || ifrow.Type == winipcfg.IfTypeSoftwareLoopback {
|
||||
if !iface.Connected {
|
||||
continue
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user