Force ipv6 setting

This commit is contained in:
Ben Sarmiento
2023-11-25 15:51:11 +01:00
parent ffddceac7c
commit 1b8f961d07
6 changed files with 56 additions and 3 deletions

View File

@@ -117,6 +117,7 @@ func (gf *GetFile) HandleGetRequest(w http.ResponseWriter, r *http.Request, t *i
} else {
gf.streamFileToResponse(file, resp.Download, w, r, t, c, log)
}
return
}
}
@@ -176,8 +177,9 @@ func (gf *GetFile) playErrorVideo(link string, w http.ResponseWriter, r *http.Re
}
if c.ShouldServeFromRclone() {
redirect(w, r, resp.Download, c)
} else {
gf.streamFileToResponse(nil, resp.Download, w, r, t, c, log)
}
gf.streamFileToResponse(nil, resp.Download, w, r, t, c, log)
}
func redirect(w http.ResponseWriter, r *http.Request, url string, c config.ConfigInterface) {