starter: Allow %any also for protocol in left|rightprotoport
This commit is contained in:
@@ -268,6 +268,12 @@ static void kw_end(starter_conn_t *conn, starter_end_t *end, kw_token_t token,
|
||||
port = sep + 1;
|
||||
}
|
||||
|
||||
if (streq(value, "%any"))
|
||||
{
|
||||
end->protocol = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
proto = getprotobyname(value);
|
||||
if (proto)
|
||||
{
|
||||
@@ -283,7 +289,7 @@ static void kw_end(starter_conn_t *conn, starter_end_t *end, kw_token_t token,
|
||||
}
|
||||
end->protocol = (u_int8_t)p;
|
||||
}
|
||||
|
||||
}
|
||||
if (streq(port, "%any"))
|
||||
{
|
||||
end->port = 0;
|
||||
|
||||
Reference in New Issue
Block a user