mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-22 04:04:16 +00:00
* Config.cpp : add --upnp.enabled option
This commit is contained in:
parent
6b8469e9a3
commit
fda3cd5fe7
@ -126,6 +126,11 @@ namespace config {
|
|||||||
("i2pcontrol.key", value<std::string>()->default_value("i2pcontrol.key.pem"), "I2PCP connection cerificate key")
|
("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");
|
options_description precomputation("Precomputation options");
|
||||||
precomputation.add_options()
|
precomputation.add_options()
|
||||||
("precomputation.elgamal",
|
("precomputation.elgamal",
|
||||||
@ -153,6 +158,7 @@ namespace config {
|
|||||||
.add(bob)
|
.add(bob)
|
||||||
.add(i2cp)
|
.add(i2cp)
|
||||||
.add(i2pcontrol)
|
.add(i2pcontrol)
|
||||||
|
.add(upnp)
|
||||||
.add(precomputation)
|
.add(precomputation)
|
||||||
.add(trust)
|
.add(trust)
|
||||||
;
|
;
|
||||||
|
@ -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.port= - Port of I2P control service. Usually 7650. I2PControl is off if not specified
|
||||||
* --i2pcontrol.enabled= - If I2P control is enabled. false by default
|
* --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
|
* --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
|
* --limits.transittunnels= - Override maximum number of transit tunnels. 2500 by default
|
||||||
|
Loading…
x
Reference in New Issue
Block a user