mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2024-11-16 03:32:33 +08:00
chore: sync internal interface
Some checks are pending
Trigger CMFA Update / trigger-CMFA-update (push) Waiting to run
Some checks are pending
Trigger CMFA Update / trigger-CMFA-update (push) Waiting to run
This commit is contained in:
parent
781b783346
commit
33823f1728
|
@ -13,6 +13,11 @@ type defaultInterfaceFinder struct{}
|
||||||
|
|
||||||
var DefaultInterfaceFinder control.InterfaceFinder = (*defaultInterfaceFinder)(nil)
|
var DefaultInterfaceFinder control.InterfaceFinder = (*defaultInterfaceFinder)(nil)
|
||||||
|
|
||||||
|
func (f *defaultInterfaceFinder) Update() error {
|
||||||
|
iface.FlushCache()
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
func (f *defaultInterfaceFinder) Interfaces() []control.Interface {
|
func (f *defaultInterfaceFinder) Interfaces() []control.Interface {
|
||||||
ifaces, err := iface.Interfaces()
|
ifaces, err := iface.Interfaces()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user