summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-03-26 14:44:28 +0000
committerOlivier Blin <oblin@mandriva.com>2008-03-26 14:44:28 +0000
commit4bae011ce5b573acf0c86e59557b60fbb35b49e4 (patch)
treefff1b29e3b08b5fa5c5f0c46b7b222ee66b58a9a /bin
parent9d123c26749cbcf7498b0051abf5777a9031ecde (diff)
downloaddrakx-net-4bae011ce5b573acf0c86e59557b60fbb35b49e4.tar
drakx-net-4bae011ce5b573acf0c86e59557b60fbb35b49e4.tar.gz
drakx-net-4bae011ce5b573acf0c86e59557b60fbb35b49e4.tar.bz2
drakx-net-4bae011ce5b573acf0c86e59557b60fbb35b49e4.tar.xz
drakx-net-4bae011ce5b573acf0c86e59557b60fbb35b49e4.zip
use a more logical key/value order in shorewall redirects hash
Diffstat (limited to 'bin')
-rwxr-xr-xbin/drakgw6
1 files changed, 2 insertions, 4 deletions
diff --git a/bin/drakgw b/bin/drakgw
index 85c9d03..bbd50cd 100755
--- a/bin/drakgw
+++ b/bin/drakgw
@@ -345,14 +345,12 @@ sub end_step() {
}
sub delete_proxy_ports() {
- my $r = $shorewall->{redirects}{tcp};
- my @ports = grep { $r->{$_} eq 'www' } keys %$r;
- delete $r->{$_} foreach @ports;
+ delete $shorewall->{redirects}{tcp}{www};
}
sub set_proxy_port {
my ($port) = @_;
- $shorewall->{redirects}{tcp}{$port} = 'www';
+ $shorewall->{redirects}{tcp}{www} = $port;
}
sub gw_disable() {