1 Commits

Author SHA1 Message Date
c1aac375e2 [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
2025-08-30 15:48:29 +03:00
3 changed files with 5 additions and 5 deletions

View File

@@ -521,7 +521,7 @@ bool GetUrl(dword _http_url)
http.get(_http_url);
return true;
} 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);
http.get(#new_url_full);
return true;

View File

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

View File

@@ -112,7 +112,7 @@ struct _http
dword _http::get(dword _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);
transfer = EAX;
return EAX;