diff options
| author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-03-29 10:47:53 +0000 |
|---|---|---|
| committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-07-16 11:35:53 +0000 |
| commit | 65c40049633f0c5db3c24af8716bb683520f368c (patch) | |
| tree | 9531d5d4c2cfa4e5a5b1ac35cea13af1b173ccbe /src/daemon/command_parser_executor.cpp | |
| parent | 515ac2951d767bdb712c4997010045715902e6ab (diff) | |
| download | monzero-core-65c40049633f0c5db3c24af8716bb683520f368c.tar.gz monzero-core-65c40049633f0c5db3c24af8716bb683520f368c.tar.xz monzero-core-65c40049633f0c5db3c24af8716bb683520f368c.zip | |
allow blocking whole subnets
Diffstat (limited to 'src/daemon/command_parser_executor.cpp')
| -rw-r--r-- | src/daemon/command_parser_executor.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
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<std::string>& args) return m_executor.unban(ip); } +bool t_command_parser_executor::banned(const std::vector<std::string>& 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<std::string>& args) { if (args.size() > 1) return false; |
