allow blocking whole subnets

This commit is contained in:
moneromooo-monero
2019-03-29 10:47:53 +00:00
parent 515ac2951d
commit 65c4004963
19 changed files with 413 additions and 34 deletions

View File

@@ -243,9 +243,15 @@ t_command_server::t_command_server(
m_command_lookup.set_handler(
"unban"
, std::bind(&t_command_parser_executor::unban, &m_parser, p::_1)
, "unban <IP>"
, "unban <address>"
, "Unban a given <IP>."
);
m_command_lookup.set_handler(
"banned"
, std::bind(&t_command_parser_executor::banned, &m_parser, p::_1)
, "banned <address>"
, "Check whether an <address> is banned."
);
m_command_lookup.set_handler(
"flush_txpool"
, std::bind(&t_command_parser_executor::flush_txpool, &m_parser, p::_1)