|
|
|
@ -82,10 +82,17 @@ namespace data
@@ -82,10 +82,17 @@ namespace data
|
|
|
|
|
*/ |
|
|
|
|
int Reseeder::ReseedFromServers () |
|
|
|
|
{ |
|
|
|
|
std::string reseedURLs; i2p::config::GetOption("reseed.urls", reseedURLs); |
|
|
|
|
bool ipv6; i2p::config::GetOption("ipv6", ipv6); |
|
|
|
|
bool ipv4; i2p::config::GetOption("ipv4", ipv4); |
|
|
|
|
|
|
|
|
|
std::vector<std::string> httpsReseedHostList; |
|
|
|
|
boost::split(httpsReseedHostList, reseedURLs, boost::is_any_of(","), boost::token_compress_on); |
|
|
|
|
|
|
|
|
|
if (ipv4 || ipv6) |
|
|
|
|
{ |
|
|
|
|
std::string reseedURLs; i2p::config::GetOption("reseed.urls", reseedURLs); |
|
|
|
|
if (!reseedURLs.empty ()) |
|
|
|
|
boost::split(httpsReseedHostList, reseedURLs, boost::is_any_of(","), boost::token_compress_on); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
std::vector<std::string> yggReseedHostList; |
|
|
|
|
if (!i2p::util::net::GetYggdrasilAddress ().is_unspecified ()) |
|
|
|
|
{ |
|
|
|
|