Improve IPSEC hosts fix -- take II

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@1671 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2004-10-09 00:41:02 +00:00
parent fa0c2ec9ab
commit ddd7bc732d

View File

@ -697,9 +697,8 @@ verify_interface()
}
#
# Generate a match for decrypted packets
# Determine of communication to/from a host is encrypted using IPSEC
#
ipsec_host() # $1 = zone, $2 = host
{
eval local is_ipsec=\$${1}_is_ipsec
@ -708,6 +707,9 @@ ipsec_host() # $1 = zone, $2 = host
test -n "$is_ipsec" || list_search $2 $hosts
}
#
# Generate a match for decrypted packets
#
match_ipsec_in() # $1 = zone, $2 = host
{
if ipsec_host $1 $2 ; then