Browse Source

Return deprecated websocket config options for compatibility

Closes #1523

Signed-off-by: R4SAS <r4sas@i2pmail.org>
pull/1525/head
R4SAS 5 years ago
parent
commit
45e8d5c50e
Signed by: r4sas
GPG Key ID: 66F6C87B98EBCFE2
  1. 9
      libi2pd/Config.cpp

9
libi2pd/Config.cpp

@ -221,6 +221,14 @@ namespace config { @@ -221,6 +221,14 @@ namespace config {
("trust.hidden", value<bool>()->default_value(false), "Should we hide our router from other routers?")
;
// Save deprecated websocket options for compatibility
options_description websocket("Websocket Options");
websocket.add_options()
("websockets.enabled", value<bool>()->default_value(false), "Deprecated option")
("websockets.address", value<std::string>()->default_value(""), "Deprecated option")
("websockets.port", value<uint16_t>()->default_value(0), "Deprecated option")
;
options_description exploratory("Exploratory Options");
exploratory.add_options()
("exploratory.inbound.length", value<int>()->default_value(2), "Exploratory inbound tunnel length")
@ -271,6 +279,7 @@ namespace config { @@ -271,6 +279,7 @@ namespace config {
.add(reseed)
.add(addressbook)
.add(trust)
.add(websocket) // deprecated
.add(exploratory)
.add(ntcp2)
.add(nettime)

Loading…
Cancel
Save