ip6t-firewall-server: fix error at 'allow_local_service' - separator was wrong.

This commit is contained in:
Christoph 2019-09-22 23:39:44 +02:00
parent e292be4141
commit 1fc3da67f8

View File

@ -938,7 +938,7 @@ echononl "\t\tAllow (non-standard) local Services"
if [[ ${#allow_local_service_arr[@]} -gt 0 ]] ; then
for _dev in "${ext_if_arr[@]}" ; do
for _val in "${allow_local_service_arr[@]}" ; do
IFS=',' read -a _val_arr <<< "${_val}"
IFS=':' read -a _val_arr <<< "${_val}"
$ip6t -A INPUT -i $_dev -p ${_val_arr[1]} --dport ${_val_arr[0]} -m state --state NEW -j ACCEPT
done
done