Respect the -D flag

It looks like edfbffb85f caused the
OVPN_DNS variable to start being ignored, meaning the -D flag was a
no-op.
This commit is contained in:
Greg Brockman 2015-10-31 18:27:55 -07:00
parent f277449569
commit ded4414ef4

View File

@ -211,7 +211,8 @@ EOF
[ -n "$OVPN_AUTH" ] && echo "auth $OVPN_AUTH" >> "$conf"
[ -n "$OVPN_CLIENT_TO_CLIENT" ] && echo "client-to-client" >> "$conf"
for i in "${OVPN_DNS_SERVERS[@]}"; do
[ "$OVPN_DNS" == "1" ] && for i in "${OVPN_DNS_SERVERS[@]}"; do
echo "push dhcp-option DNS $i" >> "$conf"
done
# Append Routes