mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02: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());
|
||||
|
||||
// TODO: check http errors
|
||||
if (! boost::starts_with(content, "<html>"))
|
||||
if (! boost::starts_with(content, "<html>") && content.size() > 0)
|
||||
break;
|
||||
std::this_thread::sleep_for(std::chrono::seconds(5));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue