mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-27 11:17:49 +02:00
* Config.cpp : add --upnp.enabled option
This commit is contained in:
parent
6b8469e9a3
commit
fda3cd5fe7
2 changed files with 8 additions and 0 deletions
|
@ -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 {
|
|||
.add(bob)
|
||||
.add(i2cp)
|
||||
.add(i2pcontrol)
|
||||
.add(upnp)
|
||||
.add(precomputation)
|
||||
.add(trust)
|
||||
;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue