Limit to downloads

This commit is contained in:
Ben Sarmiento
2024-01-26 18:34:52 +01:00
parent 1ff8cf2dfc
commit 70f3516cac

View File

@@ -237,7 +237,7 @@ func (r *HTTPClient) Do(req *http.Request) (*http.Response, error) {
} }
func (r *HTTPClient) replaceHostIfNeeded(req *http.Request) { func (r *HTTPClient) replaceHostIfNeeded(req *http.Request) {
if !r.ensureIPv6Host && !r.cfg.ShouldForceIPv6() || !strings.HasSuffix(req.URL.Host, "real-debrid.com") { if !r.ensureIPv6Host && !r.cfg.ShouldForceIPv6() || !strings.HasSuffix(req.URL.Host, "download.real-debrid.com") {
return return
} }
// get subdomain of req.URL.Host // get subdomain of req.URL.Host