genconfig: Handle "-r 0" to disable extra routes
* Disable extra routes for minimal VPNs.
This commit is contained in:
parent
f1e85c959e
commit
e933fbe923
@ -157,6 +157,8 @@ EOF
|
|||||||
|
|
||||||
# Append Routes
|
# Append Routes
|
||||||
for i in ${OVPN_ROUTES[@]}; do
|
for i in ${OVPN_ROUTES[@]}; do
|
||||||
|
# If user passed "0" skip this, assume no extra routes
|
||||||
|
[ "$i" = "0" ] && break;
|
||||||
echo route $(getroute $i) >> "$conf"
|
echo route $(getroute $i) >> "$conf"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user