Changeset 22043


Ignore:
Timestamp:
2010-07-02T05:09:04+02:00 (7 years ago)
Author:
craigc
Message:

[packages] multiwan: Reverted back from using LAN as default route in main routing table.

Location:
packages/net/multiwan
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • packages/net/multiwan/Makefile

    r21974 r22043  
    99 
    1010PKG_NAME:=multiwan 
    11 PKG_VERSION:=1.0.15 
    12 PKG_RELEASE:=2 
     11PKG_VERSION:=1.0.16 
     12PKG_RELEASE:=0 
    1313 
    1414include $(INCLUDE_DIR)/package.mk 
  • packages/net/multiwan/files/etc/config/multiwan

    r21973 r22043  
    22config 'multiwan' 'config' 
    33        option 'default_route' 'balancer' 
    4         option 'lan_if' 'lan' 
    54 
    65config 'interface' 'wan' 
  • packages/net/multiwan/files/usr/bin/multiwan

    r21974 r22043  
    733733local ifname 
    734734local ipaddr 
    735 local lanip 
    736735local i 
    737736 
     
    758757if [ "$gateway" != "x" -a "$ipaddr" != "x" -a "$ifname" != "x" ]; then 
    759758ip route add default via $gateway table $(expr $i + 170) src $ipaddr proto static 
    760 ip route del default > /dev/null 2>&1 
    761  
    762    if [ ! -z $lan_if ]; then 
    763       lanip=`uci -q -P /var/state get network.${lan_if}.ipaddr` 
    764    else 
    765       lanip=`uci -q -P /var/state get network.lan.ipaddr` 
    766    fi 
    767  
    768 ip route add default via $lanip > /dev/null 2>&1 
     759route add default gw $gateway > /dev/null 2>&1 
    769760fi 
    770761done 
     
    10651056config_load "multiwan" 
    10661057config_get default_route    config default_route 
    1067 config_get lan_if           config lan_if 
    10681058config_get debug            config debug  
    10691059 
Note: See TracChangeset for help on using the changeset viewer.