Fix exclusion of single MAC address in actions

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@3944 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2006-05-27 13:39:38 +00:00
parent f37238d0d1
commit b3fe9c9af5

View File

@ -3590,6 +3590,10 @@ process_action() # $1 = chain (Chain to add the rules to)
*!*!*)
fatal_error "Invalid SOURCE in rule \"$rule\""
;;
!~*)
excludesource=${clients#!}
clients=
;;
!*)
if [ $(list_count $clients) -gt 1 ]; then
excludesource=${clients#!}