From 70f3516cac2ed09827e1696f9f2a20575da6a4c7 Mon Sep 17 00:00:00 2001 From: Ben Sarmiento Date: Fri, 26 Jan 2024 18:34:52 +0100 Subject: [PATCH] Limit to downloads --- pkg/http/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/http/client.go b/pkg/http/client.go index 5ee4b12..4c6b576 100644 --- a/pkg/http/client.go +++ b/pkg/http/client.go @@ -237,7 +237,7 @@ func (r *HTTPClient) Do(req *http.Request) (*http.Response, error) { } 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 } // get subdomain of req.URL.Host