Browse Source

[reseed] dont do yggdrasill address check if option disabled

Signed-off-by: R4SAS <r4sas@i2pmail.org>
pull/1727/head
R4SAS 2 years ago
parent
commit
0062f7d764
Signed by: r4sas
GPG Key ID: 66F6C87B98EBCFE2
  1. 7
      libi2pd/Reseed.cpp

7
libi2pd/Reseed.cpp

@ -82,8 +82,9 @@ namespace data
*/ */
int Reseeder::ReseedFromServers () int Reseeder::ReseedFromServers ()
{ {
bool ipv6; i2p::config::GetOption("ipv6", ipv6); bool ipv6; i2p::config::GetOption("ipv6", ipv6);
bool ipv4; i2p::config::GetOption("ipv4", ipv4); bool ipv4; i2p::config::GetOption("ipv4", ipv4);
bool yggdrasil; i2p::config::GetOption("meshnets.yggdrasil", yggdrasil);
std::vector<std::string> httpsReseedHostList; std::vector<std::string> httpsReseedHostList;
if (ipv4 || ipv6) if (ipv4 || ipv6)
@ -94,7 +95,7 @@ namespace data
} }
std::vector<std::string> yggReseedHostList; std::vector<std::string> yggReseedHostList;
if (!i2p::util::net::GetYggdrasilAddress ().is_unspecified ()) if (yggdrasil && !i2p::util::net::GetYggdrasilAddress ().is_unspecified ())
{ {
LogPrint (eLogInfo, "Reseed: Yggdrasil is supported"); LogPrint (eLogInfo, "Reseed: Yggdrasil is supported");
std::string yggReseedURLs; i2p::config::GetOption("reseed.yggurls", yggReseedURLs); std::string yggReseedURLs; i2p::config::GetOption("reseed.yggurls", yggReseedURLs);

Loading…
Cancel
Save