Support multiple registered interfaces in interface monitor

This commit is contained in:
世界 2026-06-03 10:24:14 +08:00
parent 1aa83a9f92
commit 3b51857024
No known key found for this signature in database
GPG key ID: CD109927C34A63C4
2 changed files with 5 additions and 5 deletions

View file

@ -31,7 +31,7 @@ type DefaultInterfaceMonitor interface {
RegisterCallback(callback DefaultInterfaceUpdateCallback) *list.Element[DefaultInterfaceUpdateCallback]
UnregisterCallback(element *list.Element[DefaultInterfaceUpdateCallback])
RegisterMyInterface(interfaceName string)
MyInterface() string
MyInterfaces() []string
}
type DefaultInterfaceMonitorOptions struct {