Add store_mode and platform Clash mode selector

This commit is contained in:
世界 2023-08-24 21:52:38 +08:00
parent 6dcacf3b5e
commit 43f72a6419
No known key found for this signature in database
GPG key ID: CD109927C34A63C4
29 changed files with 405 additions and 71 deletions

View file

@ -1005,14 +1005,7 @@ func (r *Router) notifyNetworkUpdate(event int) {
}
}
conntrack.Close()
for _, outbound := range r.outbounds {
listener, isListener := outbound.(adapter.InterfaceUpdateListener)
if isListener {
listener.InterfaceUpdated()
}
}
r.ResetNetwork()
return
}
@ -1025,5 +1018,9 @@ func (r *Router) ResetNetwork() error {
listener.InterfaceUpdated()
}
}
for _, transport := range r.transports {
transport.Reset()
}
return nil
}