Add DefaultInterface func

This commit is contained in:
世界 2023-10-01 01:00:51 +08:00
parent 56a9b85cf5
commit 1a85bd3ef4
No known key found for this signature in database
GPG key ID: CD109927C34A63C4
2 changed files with 15 additions and 0 deletions

View file

@ -32,6 +32,7 @@ type DefaultInterfaceMonitor interface {
Close() error
DefaultInterfaceName(destination netip.Addr) string
DefaultInterfaceIndex(destination netip.Addr) int
DefaultInterface(destination netip.Addr) (string, int)
OverrideAndroidVPN() bool
AndroidVPNEnabled() bool
RegisterCallback(callback DefaultInterfaceUpdateCallback) *list.Element[DefaultInterfaceUpdateCallback]