mirror of
https://github.com/monero-project/monero.git
synced 2025-12-09 16:41:27 +09:00
Merge pull request #9703
936046f validate ip parameter in set_bans rpc call (eversinc33)
This commit is contained in:
commit
5625ea3a56
@ -2808,6 +2808,12 @@ namespace cryptonote
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
if (!i->ip)
|
||||||
|
{
|
||||||
|
error_resp.code = CORE_RPC_ERROR_CODE_WRONG_PARAM;
|
||||||
|
error_resp.message = "No ip/host supplied";
|
||||||
|
return false;
|
||||||
|
}
|
||||||
na = epee::net_utils::ipv4_network_address{i->ip, 0};
|
na = epee::net_utils::ipv4_network_address{i->ip, 0};
|
||||||
}
|
}
|
||||||
if (i->ban)
|
if (i->ban)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user