From 64c239c3890d18c002772bf612f77d351b4a1882 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Thu, 3 Apr 2008 08:14:22 +0000 Subject: adapt to new drakx-net API --- bin/drakguard | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin') 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); } -- cgit v1.2.1