Compare commits
2 Commits
rewrite_id
...
webview-ne
Author | SHA1 | Date | |
---|---|---|---|
c1aac375e2 | |||
8d235ce49b |
@@ -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;
|
||||||
|
@@ -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);
|
||||||
|
|
||||||
|
@@ -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;
|
||||||
|
@@ -100,6 +100,10 @@ lib_init: ;//////////////////////////////////////////////////////////////////;;
|
|||||||
mov [mem.alloc], eax
|
mov [mem.alloc], eax
|
||||||
mov [mem.free], ebx
|
mov [mem.free], ebx
|
||||||
mov [mem.realloc], ecx
|
mov [mem.realloc], ecx
|
||||||
|
|
||||||
|
cmp [dll.load], edx
|
||||||
|
je .ok
|
||||||
|
|
||||||
mov [dll.load], edx
|
mov [dll.load], edx
|
||||||
|
|
||||||
invoke dll.load, @IMPORT
|
invoke dll.load, @IMPORT
|
||||||
@@ -115,6 +119,7 @@ lib_init: ;//////////////////////////////////////////////////////////////////;;
|
|||||||
invoke ini.get_str, inifile, sec_proxy, key_password, proxyPassword, 256, proxyPassword
|
invoke ini.get_str, inifile, sec_proxy, key_password, proxyPassword, 256, proxyPassword
|
||||||
popa
|
popa
|
||||||
|
|
||||||
|
.ok:
|
||||||
DEBUGF 1, "HTTP library: init OK\n"
|
DEBUGF 1, "HTTP library: init OK\n"
|
||||||
xor eax, eax
|
xor eax, eax
|
||||||
ret
|
ret
|
||||||
|
@@ -78,6 +78,10 @@ proc lib_init ;///////////////////////////////////////////////////////////////;;
|
|||||||
mov [mem.alloc], eax
|
mov [mem.alloc], eax
|
||||||
mov [mem.free], ebx
|
mov [mem.free], ebx
|
||||||
mov [mem.realloc], ecx
|
mov [mem.realloc], ecx
|
||||||
|
|
||||||
|
cmp [dll.load], edx
|
||||||
|
je .ok
|
||||||
|
|
||||||
mov [dll.load], edx
|
mov [dll.load], edx
|
||||||
|
|
||||||
or edx, edx
|
or edx, edx
|
||||||
|
@@ -37,6 +37,10 @@ proc libini._.init ;////////////////////////////////////////////////////////////
|
|||||||
mov [mem.alloc], eax
|
mov [mem.alloc], eax
|
||||||
mov [mem.free], ebx
|
mov [mem.free], ebx
|
||||||
mov [mem.realloc], ecx
|
mov [mem.realloc], ecx
|
||||||
|
|
||||||
|
cmp [dll.load], edx
|
||||||
|
je .ok
|
||||||
|
|
||||||
mov [dll.load], edx
|
mov [dll.load], edx
|
||||||
|
|
||||||
invoke dll.load, @IMPORT
|
invoke dll.load, @IMPORT
|
||||||
|
@@ -33,7 +33,8 @@ use_ColorDialog
|
|||||||
;--------------------------------------------------
|
;--------------------------------------------------
|
||||||
align 16
|
align 16
|
||||||
lib_init:
|
lib_init:
|
||||||
ret
|
xor eax, eax
|
||||||
|
ret
|
||||||
|
|
||||||
;--------------------------------------------------
|
;--------------------------------------------------
|
||||||
align 16
|
align 16
|
||||||
|
Reference in New Issue
Block a user