diff --git a/ip6t-firewall-server b/ip6t-firewall-server index 4f13cd5..981cda2 100755 --- a/ip6t-firewall-server +++ b/ip6t-firewall-server @@ -1756,9 +1756,9 @@ fi echononl "\t\tMail (additional smtp ports IN)" -if [[ ${#smtpd_additional_listen_ports[@]} -gt 0 ]] ; then +if [[ ${#smtpd_additional_listen_port_arr[@]} -gt 0 ]] ; then - for _port in ${smtpd_additional_listen_ports[@]} ; do + for _port in ${smtpd_additional_listen_port_arr[@]} ; do for _dev in ${ext_if_arr[@]} ; do $ip6t -A INPUT -i $_dev -p tcp --dport $_port -m state --state NEW -j ACCEPT if $kernel_forward_between_interfaces ; then diff --git a/ipt-firewall-server b/ipt-firewall-server index 9b6177d..769e01f 100755 --- a/ipt-firewall-server +++ b/ipt-firewall-server @@ -1922,9 +1922,9 @@ fi echononl "\t\tMail (additional smtp ports IN)" -if [[ ${#smtpd_additional_listen_ports[@]} -gt 0 ]] ; then +if [[ ${#smtpd_additional_listen_port_arr[@]} -gt 0 ]] ; then - for _port in ${smtpd_additional_listen_ports[@]} ; do + for _port in ${smtpd_additional_listen_port_arr[@]} ; do for _dev in ${ext_if_arr[@]} ; do $ipt -A INPUT -i $_dev -p tcp --dport $_port -m state --state NEW -j ACCEPT if $kernel_activate_forwarding ; then