Fixing more of my errors

master
bbruns 2010-08-21 17:20:53 +00:00
parent bd7fbeb274
commit 3ef158cdef
1 changed files with 3 additions and 3 deletions

View File

@ -300,9 +300,9 @@ if [ -s "$BASEDIR/include/ipv4_custom_nat" ]; then
fi fi
if [ $NAT ]; then if [ $NAT ]; then
if [ $NAT_RANGE ]; then if [ "$NAT_RANGE" ]; then
display_c YELLOW "Adding NAT rule: " N display_c YELLOW "Adding NAT rule: " N
for i in "$NAT_RANGE"; do for i in $NAT_RANGE; do
NAT_RULE=( ${i//:/ } ) NAT_RULE=( ${i//:/ } )
case ${NAT_RULE[0]} in case ${NAT_RULE[0]} in
SNAT) SNAT)
@ -321,7 +321,7 @@ if [ $NAT ]; then
*) display_c RED "Invalid NAT rule in NAT_RANGE" ;; *) display_c RED "Invalid NAT rule in NAT_RANGE" ;;
esac esac
done done
echo -ne "\n" reset_color
fi fi
#================= #=================
# This section is going away in 1.0 # This section is going away in 1.0