MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / allowInsecurePluginStoreURL

Function allowInsecurePluginStoreURL

internal/pluginstore/auth.go:186–189  ·  view source on GitHub ↗
(auth []AuthConfig, requestURL string, kind string)

Source from the content-addressed store, hash-verified

184}
185
186func allowInsecurePluginStoreURL(auth []AuthConfig, requestURL string, kind string) bool {
187 item, ok := matchingAuthConfig(auth, requestURL, kind)
188 return ok && item.AllowInsecure
189}
190
191func matchingAuthConfig(auth []AuthConfig, requestURL string, kind string) (AuthConfig, bool) {
192 requestURL = strings.TrimSpace(requestURL)

Callers 1

Calls 1

matchingAuthConfigFunction · 0.85

Tested by

no test coverage detected