Add DefaultInterfaceMonitor.MyInterface

This commit is contained in:
世界 2025-04-12 14:39:22 +08:00
parent 2121bc3f01
commit f57754918d
No known key found for this signature in database
GPG key ID: CD109927C34A63C4
5 changed files with 19 additions and 2 deletions

View file

@ -30,6 +30,8 @@ type DefaultInterfaceMonitor interface {
AndroidVPNEnabled() bool
RegisterCallback(callback DefaultInterfaceUpdateCallback) *list.Element[DefaultInterfaceUpdateCallback]
UnregisterCallback(element *list.Element[DefaultInterfaceUpdateCallback])
RegisterMyInterface(interfaceName string)
MyInterface() string
}
type DefaultInterfaceMonitorOptions struct {