Bans a subnet, rejecting all connections within its range.
Synopsis
Declared in <banman.h>
[[requires_capability(0x7f2e3ae947c8)]]
void
Ban(
CSubNet const& sub_net,
int64_t ban_time_offset = 0,
bool since_unix_epoch = false);
Parameters
Name |
Description |
sub_net |
The subnet to ban. |
ban_time_offset |
Ban duration offset in seconds; 0 uses the default. |
since_unix_epoch |
If true, ban_time_offset is an absolute unix timestamp. |
Created with MrDocs