Fix windows monitor

This commit is contained in:
世界 2023-03-09 15:51:41 +08:00
parent 0cdb0eed74
commit 8507bb3a0a
No known key found for this signature in database
GPG key ID: CD109927C34A63C4

View file

@ -67,6 +67,10 @@ func (m *defaultInterfaceMonitor) checkUpdate() error {
var index int
for _, row := range rows {
if row.DestinationPrefix.PrefixLength != 0 {
continue
}
ifrow, err := row.InterfaceLUID.Interface()
if err != nil || ifrow.OperStatus != winipcfg.IfOperStatusUp {
continue