diff options
| author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-01-02 16:30:12 +0000 |
|---|---|---|
| committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-01-02 16:30:12 +0000 |
| commit | 7f8e5ced47ba554b18670ba78a8e3f657c7c5703 (patch) | |
| tree | f4bd6ae820b02e5dd1a2278d82f0c20670a7a8b2 /src/daemon/command_parser_executor.cpp | |
| parent | 955ad41a2d25686d9fdfb4858123ad33ccd79eef (diff) | |
| download | monzero-core-7f8e5ced47ba554b18670ba78a8e3f657c7c5703.tar.gz monzero-core-7f8e5ced47ba554b18670ba78a8e3f657c7c5703.tar.xz monzero-core-7f8e5ced47ba554b18670ba78a8e3f657c7c5703.zip | |
daemon: fix ban length using wrong parameter
Diffstat (limited to 'src/daemon/command_parser_executor.cpp')
| -rw-r--r-- | src/daemon/command_parser_executor.cpp | 2 |
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; |
