diff options
Diffstat (limited to 'bin/drakgw')
-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() { |