aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2016-01-02 16:30:12 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2016-01-02 16:30:12 +0000
commit7f8e5ced47ba554b18670ba78a8e3f657c7c5703 (patch)
treef4bd6ae820b02e5dd1a2278d82f0c20670a7a8b2 /src
parentMerge pull request #588 (diff)
downloadmonero-7f8e5ced47ba554b18670ba78a8e3f657c7c5703.tar.xz
daemon: fix ban length using wrong parameter
Diffstat (limited to 'src')
-rw-r--r--src/daemon/command_parser_executor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/daemon/command_parser_executor.cpp b/src/daemon/command_parser_executor.cpp
index 856cf6460..d1d48b6da 100644
--- a/src/daemon/command_parser_executor.cpp
+++ b/src/daemon/command_parser_executor.cpp
@@ -405,7 +405,7 @@ bool t_command_parser_executor::ban(const std::vector<std::string>& args)
time_t seconds = P2P_IP_BLOCKTIME;
if (args.size() > 1)
{
- seconds = std::stoi(args[0]);
+ seconds = std::stoi(args[1]);
if (seconds == 0)
{
return false;