From 65c40049633f0c5db3c24af8716bb683520f368c Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Fri, 29 Mar 2019 10:47:53 +0000 Subject: allow blocking whole subnets --- src/daemon/command_parser_executor.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/daemon/command_parser_executor.cpp') diff --git a/src/daemon/command_parser_executor.cpp b/src/daemon/command_parser_executor.cpp index 0b452800e..ed799096b 100644 --- a/src/daemon/command_parser_executor.cpp +++ b/src/daemon/command_parser_executor.cpp @@ -596,6 +596,13 @@ bool t_command_parser_executor::unban(const std::vector& args) return m_executor.unban(ip); } +bool t_command_parser_executor::banned(const std::vector& args) +{ + if (args.size() != 1) return false; + std::string address = args[0]; + return m_executor.banned(address); +} + bool t_command_parser_executor::flush_txpool(const std::vector& args) { if (args.size() > 1) return false; -- cgit v1.2.3