From 935beca45d926e6ee9b9612f6d7d09f855b002a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=96=E7=95=8C?= Date: Wed, 1 Jan 2025 12:19:49 +0800 Subject: [PATCH] Fix check interface --- route/router.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/route/router.go b/route/router.go index 1fc9aa7787..110809f0d2 100644 --- a/route/router.go +++ b/route/router.go @@ -345,9 +345,6 @@ func NewRouter( return nil, err } router.networkMonitor = networkMonitor - networkMonitor.RegisterCallback(func() { - _ = router.interfaceFinder.Update() - }) interfaceMonitor, err := tun.NewDefaultInterfaceMonitor(router.networkMonitor, router.logger, tun.DefaultInterfaceMonitorOptions{ InterfaceFinder: router.interfaceFinder, OverrideAndroidVPN: options.OverrideAndroidVPN,