From 3c06be28bee20d4c5c6ee06365738ddf462746d0 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Sun, 19 Apr 2020 12:28:16 -0700 Subject: [PATCH] Delete unnecessary check if IPv6 interface_is_usable() Signed-off-by: Tom Eastep --- Shorewall/Perl/lib.runtime | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Shorewall/Perl/lib.runtime b/Shorewall/Perl/lib.runtime index d8bd65b1d..f654be373 100644 --- a/Shorewall/Perl/lib.runtime +++ b/Shorewall/Perl/lib.runtime @@ -1113,7 +1113,7 @@ interface_is_usable() # $1 = interface status=0 if [ "$1" != lo ]; then - if interface_is_up $1 && [ "$(find_first_interface_address_if_any $1)" != :: ] && [ -z "$($IP -$g_family link list dev $1 2> /dev/null | fgrep 'state DOWN')" ]; then + if interface_is_up $1 && [ "$(find_first_interface_address_if_any $1)" != :: ]; then if [ "$COMMAND" != enable ]; then [ ! -f ${VARDIR}/${1}_disabled ] && run_isusable_exit $1 status=$?