From 2c3f121835656353e083cc374bf6cf27b0ab6311 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Tue, 2 Jan 2018 13:11:31 -0800 Subject: [PATCH] Don't call setup_dbl() unconditionally Signed-off-by: Tom Eastep --- Shorewall-core/lib.cli | 1 + Shorewall/lib.cli-std | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Shorewall-core/lib.cli b/Shorewall-core/lib.cli index b4b068512..0fc652328 100644 --- a/Shorewall-core/lib.cli +++ b/Shorewall-core/lib.cli @@ -1459,6 +1459,7 @@ show_command() { bl|blacklists) [ $# -gt 1 ] && too_many_arguments $2 only_root + setup_dbl eval show_blacklists $g_pager ;; opens) diff --git a/Shorewall/lib.cli-std b/Shorewall/lib.cli-std index 6736091f9..15889ea91 100644 --- a/Shorewall/lib.cli-std +++ b/Shorewall/lib.cli-std @@ -343,7 +343,7 @@ get_config() { if [ -n "$DYNAMIC_BLACKLIST" -a "$(id -u)" = 0 ]; then case $COMMAND in - reload|restart|start|blacklist|allow) + blacklist|allow|drop|logdrop|reject) setup_dbl ;; esac