MCPcopy Create free account
hub / github.com/AandStep/ResultV / FetchSubscription

Method FetchSubscription

app.go:2224–2227  ·  view source on GitHub ↗

FetchSubscription performs a one-off subscription fetch (no persistence). allowInsecure must be true for plaintext http:// URLs — see ErrInsecureSubscription. The frontend should call this with false first and re-call with true only after surfacing the warning to the user.

(subURL string, allowInsecure bool)

Source from the content-addressed store, hash-verified

2222// ErrInsecureSubscription. The frontend should call this with false first
2223// and re-call with true only after surfacing the warning to the user.
2224func (a *App) FetchSubscription(subURL string, allowInsecure bool) ([]config.ProxyEntry, error) {
2225 entries, _, _, _, _, _, _, err := a.fetchSubscriptionFromURL(subURL, allowInsecure)
2226 return entries, err
2227}
2228
2229// ParseSubscriptionText accepts pasted content. When the paste resolves to
2230// a URL (via RVSUB1 decryption), we still enforce https:// on the resolved

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected