mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-27 11:17:49 +02:00
add initial WebSOCKS implementation
This commit is contained in:
parent
d0e9fe1e3e
commit
0d83a34cfd
6 changed files with 458 additions and 2 deletions
|
@ -200,7 +200,13 @@ namespace config {
|
|||
("websockets.enabled", value<bool>()->default_value(false), "enable websocket server")
|
||||
("websockets.address", value<std::string>()->default_value("127.0.0.1"), "address to bind websocket server on")
|
||||
("websockets.port", value<uint16_t>()->default_value(7666), "port to bind websocket server on");
|
||||
|
||||
|
||||
options_description websocks("WebSOCKS options");
|
||||
websocks.add_options()
|
||||
("websocks.enabled", value<bool>()->default_value(false), "enable WebSOCKS server")
|
||||
("websocks.address", value<std::string>()->default_value("127.0.0.1"), "address to bind WebSOCKS server on")
|
||||
("websocks.port", value<uint16_t>()->default_value(7666), "port to bind WebSOCKS server on");
|
||||
|
||||
m_OptionsDesc
|
||||
.add(general)
|
||||
.add(limits)
|
||||
|
@ -217,6 +223,7 @@ namespace config {
|
|||
.add(addressbook)
|
||||
.add(trust)
|
||||
.add(websocket)
|
||||
.add(websocks)
|
||||
;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue