mirror of
https://github.com/bol-van/zapret.git
synced 2025-08-10 01:02:03 +03:00
tpws: unify pools.c with nfqws
This commit is contained in:
@@ -481,3 +481,9 @@ bool port_filters_in_range(const struct port_filters_head *head, uint16_t port)
|
||||
}
|
||||
return false;
|
||||
}
|
||||
bool port_filters_deny_if_empty(struct port_filters_head *head)
|
||||
{
|
||||
port_filter pf;
|
||||
if (LIST_FIRST(head)) return true;
|
||||
return pf_parse("0",&pf) && port_filter_add(head,&pf);
|
||||
}
|
||||
|
Reference in New Issue
Block a user