Fix network monitor

This commit is contained in:
世界
2023-07-23 14:42:19 +08:00
parent 0cbfc59b37
commit 4f847ab87d
21 changed files with 79 additions and 80 deletions

View File

@@ -186,9 +186,9 @@ func NewWireGuard(ctx context.Context, router adapter.Router, logger log.Context
return outbound, nil
}
func (w *WireGuard) InterfaceUpdated() error {
func (w *WireGuard) InterfaceUpdated() {
w.bind.Reset()
return nil
return
}
func (w *WireGuard) DialContext(ctx context.Context, network string, destination M.Socksaddr) (net.Conn, error) {