Skip to content

Commit

Permalink
genconfig: Handle "-r 0" to disable extra routes
Browse files Browse the repository at this point in the history
* Disable extra routes for minimal VPNs.
  • Loading branch information
kylemanna committed Jul 6, 2014
1 parent f1e85c9 commit e933fbe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bin/ovpn_genconfig
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,8 @@ EOF

# Append Routes
for i in ${OVPN_ROUTES[@]}; do
# If user passed "0" skip this, assume no extra routes
[ "$i" = "0" ] && break;
echo route $(getroute $i) >> "$conf"
done

Expand Down

0 comments on commit e933fbe

Please sign in to comment.