Browse Source

added some limits options

pull/475/head
weekendi2p 9 years ago
parent
commit
bb656ce44b
  1. 7
      Config.cpp

7
Config.cpp

@ -130,6 +130,13 @@ namespace config {
("close", value<std::string>()->default_value("ask"), "Action on close: minimize, exit, ask") // TODO: add custom validator or something ("close", value<std::string>()->default_value("ask"), "Action on close: minimize, exit, ask") // TODO: add custom validator or something
#endif #endif
; ;
options_description limits("Limits options");
limits.add_options()
("limits.transit", value<uint16_t>()->default_value(2500), "Maximum active transit sessions (default:2500)")
("limits.router", value<uint16_t>()->default_value(4096), "Maximum active router sessions (default:4096)")
("limits.client", value<uint16_t>()->default_value(1024), "Maximum active client sessions (default:1024)")
("limits.floodfill", value<uint16_t>()->default_value(1024), "Maximum active floodfill sessions (default:1024)")
;
options_description httpserver("HTTP Server options"); options_description httpserver("HTTP Server options");
httpserver.add_options() httpserver.add_options()

Loading…
Cancel
Save