mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-11 05:33:47 +01:00
Merge remote-tracking branch 'origin/maint-0.2.2'
This commit is contained in:
commit
696cd1cfe2
4
changes/bug2503
Normal file
4
changes/bug2503
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
o Minor features:
|
||||||
|
- When an HTTPS proxy reports "403 Forbidden", we now explain
|
||||||
|
what it means rather than calling it an unexpected status code.
|
||||||
|
Closes bug 2503. Patch from "mikey".
|
@ -1547,10 +1547,20 @@ connection_read_https_proxy_response(connection_t *conn)
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
/* else, bad news on the status code */
|
/* else, bad news on the status code */
|
||||||
|
switch (status_code) {
|
||||||
|
case 403:
|
||||||
|
log_warn(LD_NET,
|
||||||
|
"The https proxy refused to allow connection to %s "
|
||||||
|
"(status code %d, %s). Closing.",
|
||||||
|
conn->address, status_code, escaped(reason));
|
||||||
|
break;
|
||||||
|
default:
|
||||||
log_warn(LD_NET,
|
log_warn(LD_NET,
|
||||||
"The https proxy sent back an unexpected status code %d (%s). "
|
"The https proxy sent back an unexpected status code %d (%s). "
|
||||||
"Closing.",
|
"Closing.",
|
||||||
status_code, escaped(reason));
|
status_code, escaped(reason));
|
||||||
|
break;
|
||||||
|
}
|
||||||
tor_free(reason);
|
tor_free(reason);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user