Changeset 21393


Ignore:
Timestamp:
2010-05-07T03:57:02+02:00 (8 years ago)
Author:
jow
Message:

[package] 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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/pptp/files/pptp.sh

    r21390 r21393  
    2727        local gw="$(find_gw)" 
    2828        [ -n "$gw" ] && { 
    29                 route delete "$server" 2>/dev/null >/dev/null 
     29                [ "$gw" != 0.0.0.0 ] && route delete "$server" 2>/dev/null >/dev/null 
    3030                route add "$server" gw "$gw" 
    3131        } 
Note: See TracChangeset for help on using the changeset viewer.