mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-02-13 08:17:38 +01:00
reseed from clearnet only if ipv4 or ipv6 is enabled
This commit is contained in:
parent
3b32da4f5c
commit
c164601acf
1 changed files with 10 additions and 3 deletions
|
@ -82,9 +82,16 @@ namespace data
|
||||||
*/
|
*/
|
||||||
int Reseeder::ReseedFromServers ()
|
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;
|
std::vector<std::string> httpsReseedHostList;
|
||||||
|
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);
|
boost::split(httpsReseedHostList, reseedURLs, boost::is_any_of(","), boost::token_compress_on);
|
||||||
|
}
|
||||||
|
|
||||||
std::vector<std::string> yggReseedHostList;
|
std::vector<std::string> yggReseedHostList;
|
||||||
if (!i2p::util::net::GetYggdrasilAddress ().is_unspecified ())
|
if (!i2p::util::net::GetYggdrasilAddress ().is_unspecified ())
|
||||||
|
|
Loading…
Add table
Reference in a new issue