baby steps

This commit is contained in:
preland 2024-03-18 13:53:00 -05:00
parent c8214782fb
commit 83e920a5b7
2 changed files with 16 additions and 0 deletions

View File

@ -137,6 +137,19 @@ namespace daemon_args
, "Disable ZMQ RPC server" , "Disable ZMQ RPC server"
}; };
const command_line::arg_descriptor<std::string> arg_i2p_sam = {
"i2p-sam"
, "I2P SAM proxy to reach I2P peers and accept I2P connections (default: none)"
};
const command_line::arg_descriptor<unsigned> arg_i2p_accept_incoming = {
"i2p-accept-incoming"
, "Whether to accept inbound I2P connections; ignored if i2p-sam is not set."
, 0
};
const command_line::arg_descriptor<std::string> arg_only_net = {
"onlynet"
, "Only make outbound connections to addresses using the specified protocol (onion,i2p)"
};
} // namespace daemon_args } // namespace daemon_args
#endif // DAEMON_COMMAND_LINE_ARGS_H #endif // DAEMON_COMMAND_LINE_ARGS_H

View File

@ -160,6 +160,9 @@ int main(int argc, char const * argv[])
command_line::add_arg(core_settings, daemon_args::arg_zmq_rpc_disabled); command_line::add_arg(core_settings, daemon_args::arg_zmq_rpc_disabled);
command_line::add_arg(core_settings, daemonizer::arg_non_interactive); command_line::add_arg(core_settings, daemonizer::arg_non_interactive);
command_line::add_arg(core_settings, daemon_args::arg_i2p_sam);
command_line::add_arg(core_settings, daemon_args::arg_i2p_accept_incoming);
command_line::add_arg(core_settings, daemon_args::arg_only_net);
daemonizer::init_options(hidden_options, visible_options); daemonizer::init_options(hidden_options, visible_options);
daemonize::t_executor::init_options(core_settings); daemonize::t_executor::init_options(core_settings);