--- loncom/lciptables 2018/10/24 15:11:19 1.8 +++ loncom/lciptables 2019/06/09 02:35:37 1.9 @@ -2,7 +2,7 @@ # # The Learning Online Network with CAPA # -# $Id: lciptables,v 1.8 2018/10/24 15:11:19 raeburn Exp $ +# $Id: lciptables,v 1.9 2019/06/09 02:35:37 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -109,7 +109,7 @@ if ($iptables eq '') { &Exit(3); } -my $firewalld = &LONCAPA::Firewall::uses_firewalld(); +my ($firewalld) = &LONCAPA::Firewall::uses_firewalld(); &EnableRoot(); my @fw_chains = &LONCAPA::Firewall::get_fw_chains(); @@ -117,9 +117,9 @@ if ($firewalld) { $<=0; } $opened = - &LONCAPA::Firewall::firewall_close_port($iptables,\@fw_chains,$lond_port,\%iphost,[$lond_port]); + &LONCAPA::Firewall::firewall_close_port($iptables,\@fw_chains,$lond_port,\%iphost,[$lond_port],$firewalld); $closed = - &LONCAPA::Firewall::firewall_open_port($iptables,\@fw_chains,$lond_port,\%iphost,[$lond_port]); + &LONCAPA::Firewall::firewall_open_port($iptables,\@fw_chains,$lond_port,\%iphost,[$lond_port],$firewalld); if ($firewalld) { $<=$wwwid; }