From 6cbbf1c5a1515d452d93396dafb3ae703e989933 Mon Sep 17 00:00:00 2001 From: teastep Date: Sat, 27 May 2006 14:50:49 +0000 Subject: [PATCH] Fix exclusion of single MAC address in tcrules git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@3946 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb --- Shorewall/functions | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Shorewall/functions b/Shorewall/functions index e26108523..81257f60d 100644 --- a/Shorewall/functions +++ b/Shorewall/functions @@ -2133,8 +2133,12 @@ process_tc_rule() *!*!*) fatal_error "Invalid SOURCE in rule \"$rule\"" ;; + !~*) + excludesources=${sources#!} + sources=- + ;; !*) - if [ $(list_count $sourcess) -gt 1 ]; then + if [ $(list_count $sources) -gt 1 ]; then excludesources=${sources#!} sources=- fi