nftables: quote interface names in ifname sets

This commit is contained in:
bol-van
2022-02-16 22:08:01 +03:00
parent 0b242d6068
commit 0d08b555e8
2 changed files with 11 additions and 3 deletions

View File

@@ -83,6 +83,14 @@ make_comma_list()
shift
make_separator_list $var , '' "$@"
}
make_quoted_comma_list()
{
# $1 - var name to receive result
# $2,$3,... - elements
local var="$1"
shift
make_separator_list $var , '"' "$@"
}
unique()
{
local i