arno-iptables-firewall / aif

GNU General Public License v2.0
149 stars 24 forks source link

fixed: Make ipt_if() return string match the calling IFS #64

Closed abelbeck closed 5 years ago

abelbeck commented 5 years ago

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.

arnova commented 5 years ago

@abelbeck : Very nice fix. Great work :+1: