jimmyxu / chnroutes

Forked from https://chnroutes.googlecode.com/
https://chnroutes.googlecode.com/
957 stars 214 forks source link

ovpn: bug fix for $OLDGW with multiple routers #7

Closed huxuan closed 5 years ago

huxuan commented 11 years ago

Currently, vpn-up.sh failed when multiple routers is available. e.g. when both wired and wireless network is available.The problem is caused by $OLDGW will contain two lines begin with via.In the difference of commit 37d256f6c3bce85d50caa7883c50a9c3e7916de6, there is an extra | head -n1 handling this problem but it has been removed.