aboutsummaryrefslogtreecommitdiff
path: root/src/daemon/command_server.cpp
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2020-12-13 16:59:08 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2020-12-14 12:26:23 +0000
commit9de3787c47ae59d59db2d69def61705c2b20868b (patch)
tree1e4fd5e49947ba40038801a873e2cc0aca1b33ec /src/daemon/command_server.cpp
parentMerge pull request #7102 (diff)
downloadmonero-9de3787c47ae59d59db2d69def61705c2b20868b.tar.xz
daemon: the ban command can now load IPs from a file (ban @filename)
Diffstat (limited to 'src/daemon/command_server.cpp')
-rw-r--r--src/daemon/command_server.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/daemon/command_server.cpp b/src/daemon/command_server.cpp
index dd5f76188..4768bb842 100644
--- a/src/daemon/command_server.cpp
+++ b/src/daemon/command_server.cpp
@@ -234,8 +234,8 @@ t_command_server::t_command_server(
m_command_lookup.set_handler(
"ban"
, std::bind(&t_command_parser_executor::ban, &m_parser, p::_1)
- , "ban <IP> [<seconds>]"
- , "Ban a given <IP> for a given amount of <seconds>."
+ , "ban [<IP>|@<filename>] [<seconds>]"
+ , "Ban a given <IP> or list of IPs from a file for a given amount of <seconds>."
);
m_command_lookup.set_handler(
"unban"