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

SVN-Revision: 21393
master
Jo-Philipp Wich 15 years ago
parent eb51e36a78
commit c09610dd49
  1. 2
      package/pptp/files/pptp.sh

@ -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…
Cancel
Save