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:
2026-06-04 14:50:41 +08:00
parent b32b5fd531
commit d8875490b6
4 changed files with 16 additions and 176 deletions
+1 -6
View File
@@ -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{