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:
kichik 2002-11-01 11:22:03 +00:00
parent 7959b0b17a
commit e977781087
3 changed files with 17 additions and 13 deletions

View file

@ -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();