mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-23 19:21:21 +02:00
Correct indentation in validate_hosts_file()
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@1683 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
717b455bce
commit
366baf005b
@ -702,7 +702,7 @@ verify_interface()
|
|||||||
is_ipsec_host() # $1 = zone, $2 = host
|
is_ipsec_host() # $1 = zone, $2 = host
|
||||||
{
|
{
|
||||||
eval local is_ipsec=\$${1}_is_ipsec
|
eval local is_ipsec=\$${1}_is_ipsec
|
||||||
eval local hosts=\"\$${1}_is_ipsec_hosts\"
|
eval local hosts=\"\$${1}_ipsec_hosts\"
|
||||||
|
|
||||||
test -n "$is_ipsec" || list_search $2 $hosts
|
test -n "$is_ipsec" || list_search $2 $hosts
|
||||||
}
|
}
|
||||||
@ -960,8 +960,8 @@ validate_hosts_file() {
|
|||||||
eval zports=\$${z}_ports
|
eval zports=\$${z}_ports
|
||||||
|
|
||||||
for host in $(separate_list $hosts); do
|
for host in $(separate_list $hosts); do
|
||||||
|
if [ -n "$BRIDGING" ]; then
|
||||||
[ -n "$BRIDGING" ] && case $host in
|
case $host in
|
||||||
*:*)
|
*:*)
|
||||||
known_interface ${host%:*} && \
|
known_interface ${host%:*} && \
|
||||||
startup_error "Bridged interfaces may not be defined in /etc/shorewall/interfaces: $host"
|
startup_error "Bridged interfaces may not be defined in /etc/shorewall/interfaces: $host"
|
||||||
@ -975,6 +975,7 @@ validate_hosts_file() {
|
|||||||
check_bridge_port $host
|
check_bridge_port $host
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
fi
|
||||||
|
|
||||||
for option in $(separate_list $options) ; do
|
for option in $(separate_list $options) ; do
|
||||||
case $option in
|
case $option in
|
||||||
@ -983,7 +984,7 @@ validate_hosts_file() {
|
|||||||
ipsec)
|
ipsec)
|
||||||
[ -n "$POLICY_MATCH" ] || \
|
[ -n "$POLICY_MATCH" ] || \
|
||||||
startup_error "Your kernel and/or iptables does not support policy match: ipsec"
|
startup_error "Your kernel and/or iptables does not support policy match: ipsec"
|
||||||
eval ${z}_is_ipsec_hosts=\"\$${z}_is_ipsec_hosts $interface:$host\"
|
eval ${z}_ipsec_hosts=\"\$${z}_ipsec_hosts $interface:$host\"
|
||||||
eval ${z}_is_complex=Yes
|
eval ${z}_is_complex=Yes
|
||||||
;;
|
;;
|
||||||
routeback)
|
routeback)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user