[cmm/downloader] add new proxy for https sources
Some checks failed
Build system / Check kernel codestyle (pull_request) Successful in 28s
Build system / Build (pull_request) Failing after 37s

This commit is contained in:
2025-08-30 15:48:29 +03:00
parent 8d235ce49b
commit c1aac375e2
3 changed files with 5 additions and 5 deletions

View File

@@ -521,7 +521,7 @@ bool GetUrl(dword _http_url)
http.get(_http_url); http.get(_http_url);
return true; return true;
} else if (!strncmp(_http_url,"https://",8)) { } else if (!strncmp(_http_url,"https://",8)) {
strcpy(#new_url_full, "http://gate.aspero.pro/?site="); strcpy(#new_url_full, "http://176.223.130.192:82/?site=");
strncat(#new_url_full, _http_url, URL_SIZE); strncat(#new_url_full, _http_url, URL_SIZE);
http.get(#new_url_full); http.get(#new_url_full);
return true; return true;

View File

@@ -168,9 +168,9 @@ void StartDownloading()
ResetDownloadSpeed(); ResetDownloadSpeed();
pb.back_color = 0xFFFfff; pb.back_color = 0xFFFfff;
if (!strncmp(#uEdit,"https:",6)) { if (!strncmp(#uEdit,"https:",6)) {
//miniprintf(#get_url, "http://gate.aspero.pro/?site=%s", #uEdit); miniprintf(#get_url, "http://176.223.130.192:82/?site=%s", #uEdit);
notify("'HTTPS for download temporary is not supported,\ntrying to download the file via HTTP' -W"); // notify("'HTTPS for download temporary is not supported,\ntrying to download the file via HTTP' -W");
miniprintf(#uEdit, "http://%s", #uEdit+8); // miniprintf(#uEdit, "http://%s", #uEdit+8);
} }
strcpy(#get_url, #uEdit); strcpy(#get_url, #uEdit);

View File

@@ -112,7 +112,7 @@ struct _http
dword _http::get(dword _url) dword _http::get(dword _url)
{ {
cur_url = _url; cur_url = _url;
if (streqrp(cur_url, "http://gate.aspero.pro/?site=")) cur_url += 29; if (streqrp(cur_url, "http://176.223.130.192:82/?site=")) cur_url += 29;
http_get stdcall (_url, 0, 0, #accept_language); http_get stdcall (_url, 0, 0, #accept_language);
transfer = EAX; transfer = EAX;
return EAX; return EAX;