|
|
@ -27,10 +27,6 @@ namespace config { |
|
|
|
variables_map m_Options; |
|
|
|
variables_map m_Options; |
|
|
|
|
|
|
|
|
|
|
|
void Init() { |
|
|
|
void Init() { |
|
|
|
bool nat = true; |
|
|
|
|
|
|
|
#ifdef MESHNET |
|
|
|
|
|
|
|
nat = false; |
|
|
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
options_description general("General options"); |
|
|
|
options_description general("General options"); |
|
|
|
general.add_options() |
|
|
|
general.add_options() |
|
|
@ -45,7 +41,7 @@ namespace config { |
|
|
|
("datadir", value<std::string>()->default_value(""), "Path to storage of i2pd data (RI, keys, peer profiles, ...)") |
|
|
|
("datadir", value<std::string>()->default_value(""), "Path to storage of i2pd data (RI, keys, peer profiles, ...)") |
|
|
|
("host", value<std::string>()->default_value("0.0.0.0"), "External IP") |
|
|
|
("host", value<std::string>()->default_value("0.0.0.0"), "External IP") |
|
|
|
("ifname", value<std::string>()->default_value(""), "network interface to bind to") |
|
|
|
("ifname", value<std::string>()->default_value(""), "network interface to bind to") |
|
|
|
("nat", value<bool>()->zero_tokens()->default_value(nat), "should we assume we are behind NAT?") |
|
|
|
("nat", value<bool>()->zero_tokens()->default_value(true), "should we assume we are behind NAT?") |
|
|
|
("port", value<uint16_t>()->default_value(0), "Port to listen for incoming connections (default: auto)") |
|
|
|
("port", value<uint16_t>()->default_value(0), "Port to listen for incoming connections (default: auto)") |
|
|
|
("ipv4", value<bool>()->zero_tokens()->default_value(true), "Enable communication through ipv4") |
|
|
|
("ipv4", value<bool>()->zero_tokens()->default_value(true), "Enable communication through ipv4") |
|
|
|
("ipv6", value<bool>()->zero_tokens()->default_value(false), "Enable communication through ipv6") |
|
|
|
("ipv6", value<bool>()->zero_tokens()->default_value(false), "Enable communication through ipv6") |
|
|
@ -153,9 +149,6 @@ namespace config { |
|
|
|
reseed.add_options() |
|
|
|
reseed.add_options() |
|
|
|
("reseed.verify", value<bool>()->default_value(false), "Verify .su3 signature") |
|
|
|
("reseed.verify", value<bool>()->default_value(false), "Verify .su3 signature") |
|
|
|
("reseed.file", value<std::string>()->default_value(""), "Path to .su3 file") |
|
|
|
("reseed.file", value<std::string>()->default_value(""), "Path to .su3 file") |
|
|
|
#ifdef MESHNET |
|
|
|
|
|
|
|
("reseed.urls", value<std::string>()->default_value("https://reseed.i2p.rocks:8443/"), "Reseed URLs, separated by comma") |
|
|
|
|
|
|
|
#else |
|
|
|
|
|
|
|
("reseed.urls", value<std::string>()->default_value( |
|
|
|
("reseed.urls", value<std::string>()->default_value( |
|
|
|
"https://reseed.i2p-projekt.de/," |
|
|
|
"https://reseed.i2p-projekt.de/," |
|
|
|
"https://i2p.mooo.com/netDb/," |
|
|
|
"https://i2p.mooo.com/netDb/," |
|
|
@ -169,7 +162,6 @@ namespace config { |
|
|
|
"https://reseed-ru.lngserv.ru/," |
|
|
|
"https://reseed-ru.lngserv.ru/," |
|
|
|
"https://reseed.atomike.ninja/" |
|
|
|
"https://reseed.atomike.ninja/" |
|
|
|
), "Reseed URLs, separated by comma") |
|
|
|
), "Reseed URLs, separated by comma") |
|
|
|
#endif |
|
|
|
|
|
|
|
; |
|
|
|
; |
|
|
|
|
|
|
|
|
|
|
|
options_description addressbook("AddressBook options"); |
|
|
|
options_description addressbook("AddressBook options"); |
|
|
|