sync with r1585 from xwrt. kamikaze integration finished by thepeople. thanks
git-svn-id: svn://svn.openwrt.org/openwrt/packages@5692 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@ -7,7 +7,7 @@ diff -urN miniupnpd.orig/linux/iptables_init.sh miniupnpd/linux/iptables_init.sh
|
||||
|
||||
-#change this parameters :
|
||||
-EXTIF=eth0
|
||||
+EXTIF=$(nvram get wan_device)
|
||||
+EXTIF=$(uci get network.wan.ifname)
|
||||
EXTIP="`LC_ALL=C /sbin/ifconfig $EXTIF | grep 'inet addr' | awk '{print $2}' | sed -e 's/.*://'`"
|
||||
echo "External IP = $EXTIP"
|
||||
|
||||
@ -20,7 +20,7 @@ diff -urN miniupnpd.orig/linux/iptables_removeall.sh miniupnpd/linux/iptables_re
|
||||
|
||||
-#change this parameters :
|
||||
-EXTIF=eth0
|
||||
+EXTIF=$(nvram get wan_device)
|
||||
+EXTIF=$(uci get network.wan.ifname)
|
||||
EXTIP="`LC_ALL=C /sbin/ifconfig $EXTIF | grep 'inet addr' | awk '{print $2}' | sed -e 's/.*://'`"
|
||||
|
||||
#removing the MINIUPNPD chain for nat
|
||||
|
Reference in New Issue
Block a user