mirror of
https://github.com/angristan/openvpn-install.git
synced 2025-07-04 05:24:21 +02:00
a line
This commit is contained in:
parent
e223619808
commit
d7a3cecaaa
@ -471,7 +471,8 @@ ifconfig-pool-persist ipp.txt
|
|||||||
case $DNS in
|
case $DNS in
|
||||||
1)
|
1)
|
||||||
# Obtain the resolvers from resolv.conf and use them for OpenVPN
|
# Obtain the resolvers from resolv.conf and use them for OpenVPN
|
||||||
grep -v '#' /etc/resolv.conf | grep 'nameserver' | grep -E -o '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}' | while read line; do
|
grep -v '#' /etc/resolv.conf | grep 'nameserver' | grep -E -o '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}' | \
|
||||||
|
while read line; do
|
||||||
echo "push \"dhcp-option DNS $line\""
|
echo "push \"dhcp-option DNS $line\""
|
||||||
done
|
done
|
||||||
;;
|
;;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user