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)
| 2222 | // ErrInsecureSubscription. The frontend should call this with false first |
| 2223 | // and re-call with true only after surfacing the warning to the user. |
| 2224 | func (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 |
nothing calls this directly
no test coverage detected