--- natpmp      2008-01-23 12:10:57.000000000 +0100
+++ /etc/init.d/natpmp  2008-01-23 12:35:36.000000000 +0100
@@ -54,8 +55,10 @@
                # Get the IP address of this interface.
ADDR=`$IP addr show dev $IF 2>/dev/null | grep "^ *inet .* $IF\$" | cut -d " " -f 6 | cut -d / -f 1`
                if [ -n "$ADDR" ] ; then
-                       # Add the IP address to the argument list.
-                       BIND_ARGS="$BIND_ARGS -a $ADDR"
+                       for a in $ADDR; do
+                               # Add the IP address to the argument list.
+                               BIND_ARGS="$BIND_ARGS -a $a"
+                       done
                else
                        echo "Could not get IP address of interface $IF. Skipping." 
>&2
                fi




--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to