Fix for regression

As I reworked the push options, a bug got introduced where a duplication
of push in the config for the DNS dhcp-options would make it to fail.
There was no tests covering this, so I did not catch it earlier.

I've add the missing tests and fix the bug
This commit is contained in:
Sylvain Lamontagne
2016-09-22 18:12:45 -04:00
parent 2e943378d1
commit 72a3c8a001
2 changed files with 20 additions and 1 deletions

View File

@ -314,7 +314,7 @@ process_push_config "block-outside-dns"
[ -n "${OVPN_FRAGMENT:-}" ] && echo "fragment $OVPN_FRAGMENT" >> "$conf"
[ "$OVPN_DNS" == "1" ] && for i in "${OVPN_DNS_SERVERS[@]}"; do
process_push_config "push dhcp-option DNS $i"
process_push_config "dhcp-option DNS $i"
done
# Append route commands