summaryrefslogtreecommitdiffstats
path: root/bin/drakguard
diff options
context:
space:
mode:
Diffstat (limited to 'bin/drakguard')
-rwxr-xr-xbin/drakguard4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/drakguard b/bin/drakguard
index cfbab4d..0f1ad7e 100755
--- a/bin/drakguard
+++ b/bin/drakguard
@@ -247,8 +247,8 @@ sub save() {
if ($shorewall) {
$shorewall->{disabled} = 0 if $enable;
- $shorewall->{accept_local_user}{http} = $enable && $proxy_user;
- $shorewall->{accept_local_user}{$proxy_port} = $enable && $guardian_user;
+ @{$shorewall->{accept_local_users}{http}} = if_($enable, $proxy_user);
+ @{$shorewall->{accept_local_users}{$proxy_port}} = if_($enable, $guardian_user);
network::shorewall::set_redirected_ports($shorewall, 'tcp', $guardian_port, if_($enable, 'http', $proxy_port));
network::shorewall::write($shorewall, $in);
}