aboutsummaryrefslogtreecommitdiffstats
path: root/package/pptp/files/pptp.sh
diff options
context:
space:
mode:
Diffstat (limited to 'package/pptp/files/pptp.sh')
-rw-r--r--package/pptp/files/pptp.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/pptp/files/pptp.sh b/package/pptp/files/pptp.sh
index 5151f72733..b5a5c06d07 100644
--- a/package/pptp/files/pptp.sh
+++ b/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"
}