platform: Implement set underlying networks for android

This commit is contained in:
世界
2024-12-22 01:00:19 +08:00
parent 2071129f73
commit 90e1451eef
8 changed files with 43 additions and 0 deletions

View File

@@ -15,6 +15,7 @@ type Interface interface {
OpenTun(options *tun.Options, platformOptions option.TunPlatformOptions) (tun.Tun, error)
CreateDefaultInterfaceMonitor(logger logger.Logger) tun.DefaultInterfaceMonitor
Interfaces() ([]adapter.NetworkInterface, error)
SetUnderlyingNetworks(networks []adapter.NetworkInterface) error
UnderNetworkExtension() bool
IncludeAllNetworks() bool
ClearDNSCache()