diff --git a/listener/sing_tun/iface.go b/listener/sing_tun/iface.go index cc14207824..543d206c0d 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 {