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
This commit is contained in:
teastep 2006-05-27 14:50:49 +00:00
parent b3fe9c9af5
commit 6cbbf1c5a1

View File

@ -2133,8 +2133,12 @@ process_tc_rule()
*!*!*) *!*!*)
fatal_error "Invalid SOURCE in rule \"$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#!} excludesources=${sources#!}
sources=- sources=-
fi fi