starter: Allow %any also for protocol in left|rightprotoport

This commit is contained in:
Tobias Brunner
2012-09-12 16:53:45 +02:00
parent ab2c989c32
commit 23b4d3a52f
+7 -1
View File
@@ -268,6 +268,12 @@ static void kw_end(starter_conn_t *conn, starter_end_t *end, kw_token_t token,
port = sep + 1; port = sep + 1;
} }
if (streq(value, "%any"))
{
end->protocol = 0;
}
else
{
proto = getprotobyname(value); proto = getprotobyname(value);
if (proto) 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; end->protocol = (u_int8_t)p;
} }
}
if (streq(port, "%any")) if (streq(port, "%any"))
{ {
end->port = 0; end->port = 0;