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:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user