Skip to content

Commit

Permalink
chore: sync internal interface
Browse files Browse the repository at this point in the history
  • Loading branch information
wwqgtxx committed Sep 22, 2024
1 parent 781b783 commit 33823f1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions listener/sing_tun/iface.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 33823f1

Please sign in to comment.