mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-18 23:36:39 +01:00
fix hosts.txt loading bug
This commit is contained in:
parent
8694ed16fd
commit
b0adb6bd92
2 changed files with 3 additions and 2 deletions
|
@ -43,7 +43,7 @@ void AddressBook::LoadHostsFromI2P ()
|
||||||
content = i2p::util::http::httpRequest(url_ss.str());
|
content = i2p::util::http::httpRequest(url_ss.str());
|
||||||
|
|
||||||
// TODO: check http errors
|
// TODO: check http errors
|
||||||
if (! boost::starts_with(content, "<html>"))
|
if (! boost::starts_with(content, "<html>") && content.size() > 0)
|
||||||
break;
|
break;
|
||||||
std::this_thread::sleep_for(std::chrono::seconds(5));
|
std::this_thread::sleep_for(std::chrono::seconds(5));
|
||||||
}
|
}
|
||||||
|
|
1
util.cpp
1
util.cpp
|
@ -262,6 +262,7 @@ namespace http
|
||||||
|
|
||||||
// code for parser tests
|
// code for parser tests
|
||||||
//{
|
//{
|
||||||
|
// i2p::util::http::url u_0("http://127.0.0.1:7070/asdasd?qqqqqqqqqqqq");
|
||||||
// i2p::util::http::url u_1("http://user:password@site.com:8080/asdasd?qqqqqqqqqqqqq");
|
// i2p::util::http::url u_1("http://user:password@site.com:8080/asdasd?qqqqqqqqqqqqq");
|
||||||
// i2p::util::http::url u_2("http://user:password@site.com/asdasd?qqqqqqqqqqqqqq");
|
// i2p::util::http::url u_2("http://user:password@site.com/asdasd?qqqqqqqqqqqqqq");
|
||||||
// i2p::util::http::url u_3("http://user:@site.com/asdasd?qqqqqqqqqqqqq");
|
// i2p::util::http::url u_3("http://user:@site.com/asdasd?qqqqqqqqqqqqq");
|
||||||
|
|
Loading…
Add table
Reference in a new issue