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)
commit735836ccb022ae7223067a028bfcb655f87c20e9
treef5a4566d5e91a9d2afa2bd79f3ad414399124fb7
parent5aeec5692171ead78ed9b1ed3a90b4fcc026199a
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