The function ipt_if() is called with either IFS=',' or IFS=' ,'
Previously, we always returned a ' ' between arguments, which IFS=',' interprets as part of the returned argument, and an iptables warning. This was not an issue with IFS=' ,'.
In order to make ipt_if() work with any calling IFS value, use ${IFS:- } as the argument separator.
The function
ipt_if()
is called with eitherIFS=','
orIFS=' ,'
Previously, we always returned a
' '
between arguments, whichIFS=','
interprets as part of the returned argument, and an iptables warning. This was not an issue withIFS=' ,'
.In order to make
ipt_if()
work with any callingIFS
value, use${IFS:- }
as the argument separator.