[packages] multiwan: Reverted back from using LAN as default route in main routing table.
git-svn-id: svn://svn.openwrt.org/openwrt/packages@22043 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
4ca0a606f0
commit
aaccc1196a
@ -8,8 +8,8 @@
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=multiwan
|
||||
PKG_VERSION:=1.0.15
|
||||
PKG_RELEASE:=2
|
||||
PKG_VERSION:=1.0.16
|
||||
PKG_RELEASE:=0
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
|
@ -1,7 +1,6 @@
|
||||
|
||||
config 'multiwan' 'config'
|
||||
option 'default_route' 'balancer'
|
||||
option 'lan_if' 'lan'
|
||||
|
||||
config 'interface' 'wan'
|
||||
option 'weight' '10'
|
||||
|
@ -732,7 +732,6 @@ local gateway
|
||||
local group
|
||||
local ifname
|
||||
local ipaddr
|
||||
local lanip
|
||||
local i
|
||||
|
||||
echo "## Refreshing Routing Tables ##"
|
||||
@ -757,15 +756,7 @@ ip route flush table $(expr $i + 170) > /dev/null 2>&1
|
||||
|
||||
if [ "$gateway" != "x" -a "$ipaddr" != "x" -a "$ifname" != "x" ]; then
|
||||
ip route add default via $gateway table $(expr $i + 170) src $ipaddr proto static
|
||||
ip route del default > /dev/null 2>&1
|
||||
|
||||
if [ ! -z $lan_if ]; then
|
||||
lanip=`uci -q -P /var/state get network.${lan_if}.ipaddr`
|
||||
else
|
||||
lanip=`uci -q -P /var/state get network.lan.ipaddr`
|
||||
fi
|
||||
|
||||
ip route add default via $lanip > /dev/null 2>&1
|
||||
route add default gw $gateway > /dev/null 2>&1
|
||||
fi
|
||||
done
|
||||
|
||||
@ -1064,7 +1055,6 @@ wancount=0
|
||||
config_clear
|
||||
config_load "multiwan"
|
||||
config_get default_route config default_route
|
||||
config_get lan_if config lan_if
|
||||
config_get debug config debug
|
||||
|
||||
config_foreach acquire_wan_data interface
|
||||
|
Loading…
x
Reference in New Issue
Block a user