Force ipv6 setting
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user