summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/network/drakfirewall.pm4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/network/drakfirewall.pm b/lib/network/drakfirewall.pm
index c20ce44..5051eb6 100644
--- a/lib/network/drakfirewall.pm
+++ b/lib/network/drakfirewall.pm
@@ -283,9 +283,7 @@ sub main {
($disabled, $servers, $unlisted, $log_net_drop) = choose_allowed_services($in, $disabled, $servers, $unlisted, $log_net_drop) or return;
- if (!$disabled) {
- choose_watched_services($in, $servers, $unlisted) or return;
- }
+ choose_watched_services($in, $servers, $unlisted) unless $disabled;
my $ports = to_ports($servers, $unlisted);
set_ports($in->do_pkgs, $disabled, $ports, $log_net_drop, $in) or return;