mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-22 08:14:15 +00:00
Return deprecated websocket config options for compatibility
Closes #1523 Signed-off-by: R4SAS <r4sas@i2pmail.org>
This commit is contained in:
parent
37ec90c436
commit
45e8d5c50e
@ -221,6 +221,14 @@ namespace config {
|
|||||||
("trust.hidden", value<bool>()->default_value(false), "Should we hide our router from other routers?")
|
("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");
|
options_description exploratory("Exploratory Options");
|
||||||
exploratory.add_options()
|
exploratory.add_options()
|
||||||
("exploratory.inbound.length", value<int>()->default_value(2), "Exploratory inbound tunnel length")
|
("exploratory.inbound.length", value<int>()->default_value(2), "Exploratory inbound tunnel length")
|
||||||
@ -271,6 +279,7 @@ namespace config {
|
|||||||
.add(reseed)
|
.add(reseed)
|
||||||
.add(addressbook)
|
.add(addressbook)
|
||||||
.add(trust)
|
.add(trust)
|
||||||
|
.add(websocket) // deprecated
|
||||||
.add(exploratory)
|
.add(exploratory)
|
||||||
.add(ntcp2)
|
.add(ntcp2)
|
||||||
.add(nettime)
|
.add(nettime)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user