Browse Source

* Config.cpp : add --upnp.enabled option

pull/572/head
hagen 8 years ago
parent
commit
fda3cd5fe7
  1. 6
      Config.cpp
  2. 2
      docs/configuration.md

6
Config.cpp

@ -126,6 +126,11 @@ namespace config { @@ -126,6 +126,11 @@ namespace config {
("i2pcontrol.key", value<std::string>()->default_value("i2pcontrol.key.pem"), "I2PCP connection cerificate key")
;
options_description upnp("UPnP options");
upnp.add_options()
("upnp.enabled", value<bool>()->default_value(false), "Enable or disable UPnP: automatic port forwarding")
;
options_description precomputation("Precomputation options");
precomputation.add_options()
("precomputation.elgamal",
@ -153,6 +158,7 @@ namespace config { @@ -153,6 +158,7 @@ namespace config {
.add(bob)
.add(i2cp)
.add(i2pcontrol)
.add(upnp)
.add(precomputation)
.add(trust)
;

2
docs/configuration.md

@ -68,6 +68,8 @@ All options below still possible in cmdline, but better write it in config file: @@ -68,6 +68,8 @@ All options below still possible in cmdline, but better write it in config file:
* --i2pcontrol.port= - Port of I2P control service. Usually 7650. I2PControl is off if not specified
* --i2pcontrol.enabled= - If I2P control is enabled. false by default
* --upnp.enabled= - Enable or disable UPnP, false by default
* --precomputation.elgamal= - Use ElGamal precomputated tables. false for x64 and true for other platforms by default
* --limits.transittunnels= - Override maximum number of transit tunnels. 2500 by default

Loading…
Cancel
Save