Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

support unix socket HTTP server for nodeos #7967

Merged
merged 1 commit into from
Sep 23, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions plugins/http_plugin/http_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,10 @@ namespace eosio {
cfg.add_options()
("unix-socket-path", bpo::value<string>()->default_value(current_http_plugin_defaults.default_unix_socket_path),
"The filename (relative to data-dir) to create a unix socket for HTTP RPC; set blank to disable.");
else
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unfortunately I had to do the else here because default_value() balked at an empty string 🤷‍♂

cfg.add_options()
("unix-socket-path", bpo::value<string>(),
"The filename (relative to data-dir) to create a unix socket for HTTP RPC; set blank to disable.");
#endif

if(current_http_plugin_defaults.default_http_port)
Expand Down