diff --git a/internal/dav/infuse.go b/internal/dav/infuse.go index ec1461a..27b919d 100644 --- a/internal/dav/infuse.go +++ b/internal/dav/infuse.go @@ -96,7 +96,7 @@ func ServeFilesListForInfuse(directory, torrentName string, torMgr *torrent.Torr func ServeDownloadsListForInfuse(torMgr *torrent.TorrentManager) ([]byte, error) { var buf bytes.Buffer if !torMgr.Config.EnableDownloadMount() { - buf.WriteString("Enable download cache in config to use this feature") + buf.WriteString("Enable download mount in config to use this feature") return buf.Bytes(), nil } buf.WriteString("") diff --git a/internal/dav/listing.go b/internal/dav/listing.go index 85e0503..9d763fb 100644 --- a/internal/dav/listing.go +++ b/internal/dav/listing.go @@ -122,7 +122,7 @@ func HandleSingleFile(directory, torrentName, fileName string, torMgr *torrent.T func ServeDownloadsList(torMgr *torrent.TorrentManager) ([]byte, error) { var buf bytes.Buffer if !torMgr.Config.EnableDownloadMount() { - buf.WriteString("Enable download cache in config to use this feature") + buf.WriteString("Enable download mount in config to use this feature") return buf.Bytes(), nil } buf.WriteString("") diff --git a/internal/handlers/home.go b/internal/handlers/home.go index 0753803..124c87c 100644 --- a/internal/handlers/home.go +++ b/internal/handlers/home.go @@ -203,7 +203,7 @@ func (zr *Handlers) handleHome(resp http.ResponseWriter, req *http.Request) { %d - Use Download Cache + Use Download Mount %t diff --git a/internal/http/listing.go b/internal/http/listing.go index ba3b012..110850a 100644 --- a/internal/http/listing.go +++ b/internal/http/listing.go @@ -96,7 +96,7 @@ func ServeFilesList(directory, torrentName string, torMgr *torrent.TorrentManage func ServeDownloadsList(torMgr *torrent.TorrentManager) ([]byte, error) { var buf bytes.Buffer if !torMgr.Config.EnableDownloadMount() { - buf.WriteString("Enable download cache in config to use this feature") + buf.WriteString("Enable download mount in config to use this feature") return buf.Bytes(), nil } buf.WriteString("
    ") diff --git a/pkg/http/client.go b/pkg/http/client.go index e286626..d04b3ca 100644 --- a/pkg/http/client.go +++ b/pkg/http/client.go @@ -178,7 +178,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.Host, "download.real-debrid.com") { + if strings.HasSuffix(req.Host, "download.real-debrid.cloud") || !r.ensureIPv6Host || !r.cfg.ShouldForceIPv6() { return } // get subdomain of req.Host