From 33823f1728d97217bf0cf401bd8ae029986dec0c Mon Sep 17 00:00:00 2001 From: wwqgtxx Date: Sun, 22 Sep 2024 22:45:55 +0800 Subject: [PATCH] chore: sync internal interface --- listener/sing_tun/iface.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/listener/sing_tun/iface.go b/listener/sing_tun/iface.go index cc142078..543d206c 100644 --- a/listener/sing_tun/iface.go +++ b/listener/sing_tun/iface.go @@ -13,6 +13,11 @@ type defaultInterfaceFinder struct{} var DefaultInterfaceFinder control.InterfaceFinder = (*defaultInterfaceFinder)(nil) +func (f *defaultInterfaceFinder) Update() error { + iface.FlushCache() + return nil +} + func (f *defaultInterfaceFinder) Interfaces() []control.Interface { ifaces, err := iface.Interfaces() if err != nil {