mirror of
https://github.com/router-for-me/CLIProxyAPI.git
synced 2026-02-03 04:50:52 +08:00
fix(watcher): simplify vertex apikey idKind to exclude base suffix
This commit is contained in:
@@ -1150,7 +1150,7 @@ func (w *Watcher) SnapshotCoreAuths() []*coreauth.Auth {
|
|||||||
|
|
||||||
key := strings.TrimSpace(compat.APIKey)
|
key := strings.TrimSpace(compat.APIKey)
|
||||||
proxyURL := strings.TrimSpace(compat.ProxyURL)
|
proxyURL := strings.TrimSpace(compat.ProxyURL)
|
||||||
idKind := fmt.Sprintf("vertex:apikey:%s", base)
|
idKind := "vertex:apikey"
|
||||||
id, token := idGen.next(idKind, key, base, proxyURL)
|
id, token := idGen.next(idKind, key, base, proxyURL)
|
||||||
attrs := map[string]string{
|
attrs := map[string]string{
|
||||||
"source": fmt.Sprintf("config:vertex-apikey[%s]", token),
|
"source": fmt.Sprintf("config:vertex-apikey[%s]", token),
|
||||||
|
|||||||
Reference in New Issue
Block a user