mirror of
https://github.com/oxen-io/oxen-core.git
synced 2023-12-14 02:22:56 +01:00
daemon: fix ban length using wrong parameter
This commit is contained in:
parent
955ad41a2d
commit
7f8e5ced47
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue