From 4e7ee7cce9a2b92a95cafbb1ee0c4929432b8d52 Mon Sep 17 00:00:00 2001 From: bbruns Date: Sat, 18 Dec 2010 22:22:46 +0000 Subject: [PATCH] Push out 0.9.11 --- bin/firewall-sosdg | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/firewall-sosdg b/bin/firewall-sosdg index f68fcde..0ca5744 100755 --- a/bin/firewall-sosdg +++ b/bin/firewall-sosdg @@ -513,10 +513,10 @@ if [ "$PORTFW" ] && [ "$NAT" ]; then if [ "$SRCIP" ]; then SRCIP="-s ${SRCIP}" fi - if [ ! "$DSTIP" ] && [ ! "$DSTIF" ]; then - DSTIP="-d $EXTIP" - elif [ "$DSTIP" ]; then + if [ "$DSTIP" ]; then DSTIP="-d $DSTIP" + elif [ ! "$DSTIP" ] && [ ! "$DSTIF" ]; then + DSTIP="-d $EXTIP" fi #PORTADD=( ${i//:/ } ) $IPTABLES -A PREROUTING -t nat ${DSTIF} -p ${DSTPROTO} ${SRCIP} \