|
|
@ -38,7 +38,7 @@ namespace config { |
|
|
|
("log", value<std::string>()->default_value(""), "Logs destination: stdout, file, syslog (stdout if not set)") |
|
|
|
("log", value<std::string>()->default_value(""), "Logs destination: stdout, file, syslog (stdout if not set)") |
|
|
|
("logfile", value<std::string>()->default_value(""), "Path to logfile (stdout if not set, autodetect if daemon)") |
|
|
|
("logfile", value<std::string>()->default_value(""), "Path to logfile (stdout if not set, autodetect if daemon)") |
|
|
|
("loglevel", value<std::string>()->default_value("info"), "Set the minimal level of log messages (debug, info, warn, error, none)") |
|
|
|
("loglevel", value<std::string>()->default_value("info"), "Set the minimal level of log messages (debug, info, warn, error, none)") |
|
|
|
("logclftime", value<bool>()->zero_tokens()->default_value(false), "Write full CLF-formatted date and time to log (default: write only time)") |
|
|
|
("logclftime", value<bool>()->default_value(false), "Write full CLF-formatted date and time to log (default: write only time)") |
|
|
|
("family", value<std::string>()->default_value(""), "Specify a family, router belongs to") |
|
|
|
("family", value<std::string>()->default_value(""), "Specify a family, router belongs to") |
|
|
|
("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") |
|
|
@ -48,21 +48,21 @@ namespace config { |
|
|
|
("nat", value<bool>()->default_value(true), "Should we assume we are behind NAT?") |
|
|
|
("nat", value<bool>()->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>()->default_value(true), "Enable communication through ipv4") |
|
|
|
("ipv4", value<bool>()->default_value(true), "Enable communication through ipv4") |
|
|
|
("ipv6", value<bool>()->zero_tokens()->default_value(false), "Enable communication through ipv6") |
|
|
|
("ipv6", value<bool>()->default_value(false), "Enable communication through ipv6") |
|
|
|
("netid", value<int>()->default_value(I2PD_NET_ID), "Specify NetID. Main I2P is 2") |
|
|
|
("netid", value<int>()->default_value(I2PD_NET_ID), "Specify NetID. Main I2P is 2") |
|
|
|
("daemon", value<bool>()->zero_tokens()->default_value(false), "Router will go to background after start") |
|
|
|
("daemon", value<bool>()->default_value(false), "Router will go to background after start") |
|
|
|
("service", value<bool>()->zero_tokens()->default_value(false), "Router will use system folders like '/var/lib/i2pd'") |
|
|
|
("service", value<bool>()->default_value(false), "Router will use system folders like '/var/lib/i2pd'") |
|
|
|
("notransit", value<bool>()->zero_tokens()->default_value(false), "Router will not accept transit tunnels at startup") |
|
|
|
("notransit", value<bool>()->default_value(false), "Router will not accept transit tunnels at startup") |
|
|
|
("floodfill", value<bool>()->zero_tokens()->default_value(false), "Router will be floodfill") |
|
|
|
("floodfill", value<bool>()->default_value(false), "Router will be floodfill") |
|
|
|
("bandwidth", value<std::string>()->default_value(""), "Bandwidth limit: integer in KBps or letters: L (32), O (256), P (2048), X (>9000)") |
|
|
|
("bandwidth", value<std::string>()->default_value(""), "Bandwidth limit: integer in KBps or letters: L (32), O (256), P (2048), X (>9000)") |
|
|
|
("share", value<int>()->default_value(100), "Limit of transit traffic from max bandwidth in percents. (default: 100") |
|
|
|
("share", value<int>()->default_value(100), "Limit of transit traffic from max bandwidth in percents. (default: 100") |
|
|
|
("ntcp", value<bool>()->default_value(true), "Enable NTCP transport") |
|
|
|
("ntcp", value<bool>()->default_value(true), "Enable NTCP transport") |
|
|
|
("ssu", value<bool>()->default_value(true), "Enable SSU transport") |
|
|
|
("ssu", value<bool>()->default_value(true), "Enable SSU transport") |
|
|
|
("ntcpproxy", value<std::string>()->default_value(""), "Proxy URL for NTCP transport") |
|
|
|
("ntcpproxy", value<std::string>()->default_value(""), "Proxy URL for NTCP transport") |
|
|
|
("ntcp2", value<bool>()->zero_tokens()->default_value(false), "Enable NTCP2 (experimental)") |
|
|
|
("ntcp2", value<bool>()->default_value(false), "Enable NTCP2 (experimental)") |
|
|
|
#ifdef _WIN32 |
|
|
|
#ifdef _WIN32 |
|
|
|
("svcctl", value<std::string>()->default_value(""), "Windows service management ('install' or 'remove')") |
|
|
|
("svcctl", value<std::string>()->default_value(""), "Windows service management ('install' or 'remove')") |
|
|
|
("insomnia", value<bool>()->zero_tokens()->default_value(false), "Prevent system from sleeping") |
|
|
|
("insomnia", value<bool>()->default_value(false), "Prevent system from sleeping") |
|
|
|
("close", value<std::string>()->default_value("ask"), "Action on close: minimize, exit, ask") |
|
|
|
("close", value<std::string>()->default_value("ask"), "Action on close: minimize, exit, ask") |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
; |
|
|
|
; |
|
|
@ -86,7 +86,7 @@ namespace config { |
|
|
|
("http.user", value<std::string>()->default_value("i2pd"), "Username for basic auth") |
|
|
|
("http.user", value<std::string>()->default_value("i2pd"), "Username for basic auth") |
|
|
|
("http.pass", value<std::string>()->default_value(""), "Password for basic auth (default: random, see logs)") |
|
|
|
("http.pass", value<std::string>()->default_value(""), "Password for basic auth (default: random, see logs)") |
|
|
|
("http.strictheaders", value<bool>()->default_value(true), "Enable strict host checking on WebUI") |
|
|
|
("http.strictheaders", value<bool>()->default_value(true), "Enable strict host checking on WebUI") |
|
|
|
("http.hostname", value<std::string>()->default_value("localhost"),"Expected hostname for WebUI") |
|
|
|
("http.hostname", value<std::string>()->default_value("localhost"), "Expected hostname for WebUI") |
|
|
|
; |
|
|
|
; |
|
|
|
|
|
|
|
|
|
|
|
options_description httpproxy("HTTP Proxy options"); |
|
|
|
options_description httpproxy("HTTP Proxy options"); |
|
|
|