summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-04-03 08:14:22 +0000
committerOlivier Blin <oblin@mandriva.com>2008-04-03 08:14:22 +0000
commit64c239c3890d18c002772bf612f77d351b4a1882 (patch)
treea4bf1ac89b642850dc72bf3e026cb6b5cb5594be /bin
parent980eb5ad1e1b18d9907d226f4d67796d51ccdb03 (diff)
downloaddrakguard-64c239c3890d18c002772bf612f77d351b4a1882.tar
drakguard-64c239c3890d18c002772bf612f77d351b4a1882.tar.gz
drakguard-64c239c3890d18c002772bf612f77d351b4a1882.tar.bz2
drakguard-64c239c3890d18c002772bf612f77d351b4a1882.tar.xz
drakguard-64c239c3890d18c002772bf612f77d351b4a1882.zip
adapt to new drakx-net API
Diffstat (limited to 'bin')
-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);
}