Limit to downloads
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user