1
0
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:
hagen 2016-06-09 14:30:36 +00:00
parent 21b5f2c96a
commit b786576bcb

View File

@ -223,6 +223,8 @@ namespace proxy {
u.parse(t);
dest_host = u.host;
dest_port = u.port;
if (dest_port == 0)
dest_port = 80; /* always set port for CreateStream() */
} else {
/* relative url and missing 'Host' header */
std::string message = "Can't detect destination host from request";