refactor: Modular network manager

This commit is contained in:
世界 committed 2025-01-13 15:14:29 +08:00
1 parent 19fb214226
commit a1be455202
35 files changed
+612 -603

No files matched your search

+1 -1
View File
@@ -25,7 +25,7 @@ type DarwinSystemProxy struct {
}
func NewSystemProxy(ctx context.Context, serverAddr M.Socksaddr, supportSOCKS bool) (*DarwinSystemProxy, error) {
interfaceMonitor := service.FromContext[adapter.Router](ctx).InterfaceMonitor()
interfaceMonitor := service.FromContext[adapter.NetworkManager](ctx).InterfaceMonitor()
if interfaceMonitor == nil {
return nil, E.New("missing interface monitor")
}