mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-23 19:33:28 +01:00
Merge pull request #594
7f8e5ce
daemon: fix ban length using wrong parameter (moneromooo-monero)
This commit is contained in:
commit
6432feee6d
@ -405,7 +405,7 @@ bool t_command_parser_executor::ban(const std::vector<std::string>& args)
|
|||||||
time_t seconds = P2P_IP_BLOCKTIME;
|
time_t seconds = P2P_IP_BLOCKTIME;
|
||||||
if (args.size() > 1)
|
if (args.size() > 1)
|
||||||
{
|
{
|
||||||
seconds = std::stoi(args[0]);
|
seconds = std::stoi(args[1]);
|
||||||
if (seconds == 0)
|
if (seconds == 0)
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user