mirror of
https://gitclone.com/github.com/MetaCubeX/Clash.Meta
synced 2025-02-23 07:23:17 +08:00
fix proxies callback
This commit is contained in:
parent
f7393509a3
commit
aeddc8eb1d
@ -97,6 +97,10 @@ func updateProxy(w http.ResponseWriter, r *http.Request) {
|
||||
}
|
||||
|
||||
cachefile.Cache().SetSelected(proxy.Name(), req.Name)
|
||||
if SwitchProxiesCallback != nil {
|
||||
// refresh tray menu
|
||||
go SwitchProxiesCallback(proxy.Name(), req.Name)
|
||||
}
|
||||
render.NoContent(w, r)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user