diff options
-rw-r--r-- | package/pptp/files/pptp.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/package/pptp/files/pptp.sh b/package/pptp/files/pptp.sh index 5151f7273..b5a5c06d0 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" } |