platform: Implement set underlying networks for android

This commit is contained in:
世界
2024-12-22 01:00:19 +08:00
parent f0f3a45904
commit eb4a184b7e
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()