mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-22 04:04:16 +00:00
fixed build error
This commit is contained in:
parent
afe2dceb52
commit
ff10dfa161
2
util.cpp
2
util.cpp
@ -272,7 +272,7 @@ namespace http
|
|||||||
back_inserter(host_),
|
back_inserter(host_),
|
||||||
std::ptr_fun<int,int>(tolower)); // host is icase
|
std::ptr_fun<int,int>(tolower)); // host is icase
|
||||||
|
|
||||||
std::string::const_iterator port_i = find(host_.begin(), host_.end(), ':');
|
auto port_i = find(host_.begin(), host_.end(), ':');
|
||||||
if (port_i != host_.end())
|
if (port_i != host_.end())
|
||||||
{
|
{
|
||||||
port_ = std::stoi(std::string(port_i + 1, host_.end()));
|
port_ = std::stoi(std::string(port_i + 1, host_.end()));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user