From 8507bb3a0a3da3511f02bb8f2bb100364d7c72c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=96=E7=95=8C?= Date: Thu, 9 Mar 2023 15:51:41 +0800 Subject: [PATCH] Fix windows monitor --- monitor_windows.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/monitor_windows.go b/monitor_windows.go index a930c53..db36d9e 100644 --- a/monitor_windows.go +++ b/monitor_windows.go @@ -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