mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-24 01:01:52 +02:00
[package] pptp: don't remove server route if the gateway is 0.0.0.0, this fixes a problem when a pppoe peer is pptp server at the same time
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21393 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
b62840e4e7
commit
ae8a34c063
@ -26,7 +26,7 @@ setup_interface_pptp() {
|
||||
setup_interface "$device" "$config" "${ipproto:-dhcp}"
|
||||
local gw="$(find_gw)"
|
||||
[ -n "$gw" ] && {
|
||||
route delete "$server" 2>/dev/null >/dev/null
|
||||
[ "$gw" != 0.0.0.0 ] && route delete "$server" 2>/dev/null >/dev/null
|
||||
route add "$server" gw "$gw"
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user