Reuse InterfaceFinder

This commit is contained in:
世界 2024-09-22 22:21:50 +08:00
parent f845cffeac
commit 9e1969527e
No known key found for this signature in database
GPG key ID: CD109927C34A63C4
7 changed files with 26 additions and 56 deletions

View file

@ -3,6 +3,7 @@ package tun
import (
"net/netip"
"github.com/sagernet/sing/common/control"
E "github.com/sagernet/sing/common/exceptions"
"github.com/sagernet/sing/common/x/list"
)
@ -40,6 +41,7 @@ type DefaultInterfaceMonitor interface {
}
type DefaultInterfaceMonitorOptions struct {
InterfaceFinder control.InterfaceFinder
OverrideAndroidVPN bool
UnderNetworkExtension bool
}