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