Fixed a bug with HTTP proxy detection - Joost can finally use NSIS-dl :D
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@1518 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
7959b0b17a
commit
e977781087
3 changed files with 17 additions and 13 deletions
|
@ -525,14 +525,17 @@ DWORD CALLBACK UpdateThread(LPVOID v) {
|
|||
static char pbuf[8192];
|
||||
char *p=NULL;
|
||||
*response = 0;
|
||||
if (getProxyInfo(pbuf)) {
|
||||
p=my_strstr(pbuf,"http=");
|
||||
if (!p) p=pbuf;
|
||||
else {
|
||||
p+=5;
|
||||
char *tp=my_strstr(p,";");
|
||||
if (tp) *tp=0;
|
||||
}
|
||||
if (getProxyInfo(pbuf))
|
||||
{
|
||||
p=my_strstr(pbuf,"http=");
|
||||
if (!p) p=pbuf;
|
||||
else {
|
||||
p+=5;
|
||||
}
|
||||
char *tp=my_strstr(p,";");
|
||||
if (tp) *tp=0;
|
||||
char *p2=my_strstr(p,"=");
|
||||
if (p2) p=0; // we found the wrong proxy
|
||||
}
|
||||
if (!g_dns) {
|
||||
g_dns = new JNL_AsyncDNS();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue