daemon: fix ban length using wrong parameter

release-v0.4.0.1
moneromooo-monero 9 years ago
parent 955ad41a2d
commit 7f8e5ced47
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3

@ -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;

Loading…
Cancel
Save