aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2016-01-03 19:53:48 +0200
committerRiccardo Spagni <ric@spagni.net>2016-01-03 19:53:48 +0200
commit6432feee6d5d7192267ddac0d4a197c858ce1c79 (patch)
tree613ef22d1517c10c12e16cbc2d1cf46556a470ed
parentMerge pull request #593 (diff)
parentdaemon: fix ban length using wrong parameter (diff)
downloadmonero-6432feee6d5d7192267ddac0d4a197c858ce1c79.tar.xz
Merge pull request #594
7f8e5ce daemon: fix ban length using wrong parameter (moneromooo-monero)
-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;