Remove personal CDN override hacks
These CDN compatibility hacks are personal deployment adjustments and should not live in the public codebase. Keep them in a separate personal branch when needed, while preserving only the generic 99_0_115.zip probe-and-append behavior in the shared branch. Signed-off-by: Sean Du <do4suki@gmail.com>
This commit is contained in:
@@ -23,15 +23,10 @@ func getUrl(ctx *gin.Context) {
|
||||
return
|
||||
}
|
||||
|
||||
cdnServer := config.Conf.Settings.BackupCdnServer
|
||||
if cdnServer == "" {
|
||||
cdnServer = config.Conf.Settings.CdnServer
|
||||
}
|
||||
|
||||
urlList := []string{}
|
||||
for _, v := range downloadReq.PathList {
|
||||
urlList = append(urlList, fmt.Sprintf("%s/%s/extracted/%s",
|
||||
cdnServer, downloadReq.Os, strings.ReplaceAll(v, "\\", "")))
|
||||
config.Conf.Settings.CdnServer, downloadReq.Os, strings.ReplaceAll(v, "\\", "")))
|
||||
}
|
||||
|
||||
ss.Respond(downloadschema.UrlResp{
|
||||
|
||||
Reference in New Issue
Block a user