Feature: support store group selected node to cache (enable by default)

This commit is contained in:
Dreamacro
2021-02-18 23:41:50 +08:00
parent aa81193d5b
commit 14bbf6eedc
6 changed files with 183 additions and 1 deletions

View File

@ -9,6 +9,7 @@ import (
"github.com/Dreamacro/clash/adapters/outbound"
"github.com/Dreamacro/clash/adapters/outboundgroup"
"github.com/Dreamacro/clash/component/profile/cachefile"
C "github.com/Dreamacro/clash/constant"
"github.com/Dreamacro/clash/tunnel"
@ -91,6 +92,7 @@ func updateProxy(w http.ResponseWriter, r *http.Request) {
return
}
cachefile.Cache().SetSelected(proxy.Name(), req.Name)
render.NoContent(w, r)
}