diff options
author | Olivier Blin <oblin@mandriva.com> | 2008-03-26 14:44:28 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2008-03-26 14:44:28 +0000 |
commit | 4bae011ce5b573acf0c86e59557b60fbb35b49e4 (patch) | |
tree | fff1b29e3b08b5fa5c5f0c46b7b222ee66b58a9a /bin | |
parent | 9d123c26749cbcf7498b0051abf5777a9031ecde (diff) | |
download | drakx-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-x | bin/drakgw | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -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() { |