tpws: comma separated values in --filter-tcp

This commit is contained in:
bol-van
2024-10-29 17:17:58 +03:00
parent 2464d27550
commit acfd844a49
7 changed files with 80 additions and 14 deletions

View File

@@ -268,6 +268,11 @@ bool pf_parse(const char *s, port_filter *pf)
char c;
if (!s) return false;
if (*s=='*' && s[1]==0)
{
pf->from=1; pf->to=0xFFFF;
return true;
}
if (*s=='~')
{
pf->neg=true;