mirror of
https://github.com/Nyr/openvpn-install.git
synced 2024-11-24 05:56:08 +03:00
fix dns option 3 with single quotes
This commit is contained in:
parent
a3519c6fa3
commit
01003c88f8
@ -315,8 +315,8 @@ tls-version-min 1.2" > /etc/openvpn/server.conf
|
||||
read ns1 ns2 <<< $(curl -s https://api.opennicproject.org/geoip/ | head -2 | awk '{print $1}')
|
||||
echo -e "nameserver $ns1
|
||||
nameserver $ns2" >> /etc/resolv.conf #Set the DNS servers
|
||||
echo "push "dhcp-option DNS $ns1"" >> /etc/openvpn/server.conf
|
||||
echo "push "dhcp-option DNS $ns2"" >> /etc/openvpn/server.conf
|
||||
echo 'push "dhcp-option DNS $ns1"' >> /etc/openvpn/server.conf
|
||||
echo 'push "dhcp-option DNS $ns2"' >> /etc/openvpn/server.conf
|
||||
;;
|
||||
4) #OpenDNS
|
||||
echo 'push "dhcp-option DNS 208.67.222.222"' >> /etc/openvpn/server.conf
|
||||
|
Loading…
Reference in New Issue
Block a user