Fix pptp handling of routes to server.
authorGabor Juhos <juhosg@openwrt.org>
Thu, 3 May 2012 09:39:01 +0000 (09:39 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Thu, 3 May 2012 09:39:01 +0000 (09:39 +0000)
commit60db046ef28501513c3a58e3b23a070fa0b9bcc4
treecc013c25c642b64cd16de65a39b4204d7e2a0ab0
parent97697c332fd4a67878b0aa8af8a03d1b1ef7c298
Fix pptp handling of routes to server.

The existing code is fairly broken. It assumes you're using Legacy IP, and
it assumes that the server is reachable via your default route. Via the
first default route in the 'route -n' output, in fact, regardless of metric.

Fix all those problems by using 'ip route get' to really find the *current*
route to the server, and install a host-specific route to match.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
SVN-Revision: 31565
package/pptp/Makefile
package/pptp/files/pptp.sh