mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-31 09:04:14 +00:00
* HTTPProxy.cpp : always set dest_port
This commit is contained in:
parent
21b5f2c96a
commit
b786576bcb
@ -223,6 +223,8 @@ namespace proxy {
|
|||||||
u.parse(t);
|
u.parse(t);
|
||||||
dest_host = u.host;
|
dest_host = u.host;
|
||||||
dest_port = u.port;
|
dest_port = u.port;
|
||||||
|
if (dest_port == 0)
|
||||||
|
dest_port = 80; /* always set port for CreateStream() */
|
||||||
} else {
|
} else {
|
||||||
/* relative url and missing 'Host' header */
|
/* relative url and missing 'Host' header */
|
||||||
std::string message = "Can't detect destination host from request";
|
std::string message = "Can't detect destination host from request";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user