From d7a3cecaaa8566d8dbd43e72f51b62e55a3845f6 Mon Sep 17 00:00:00 2001 From: xiagw Date: Mon, 8 Jan 2018 18:43:54 +0800 Subject: [PATCH] a line --- openvpn-install.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openvpn-install.sh b/openvpn-install.sh index ab0c534..dcfbd6a 100644 --- a/openvpn-install.sh +++ b/openvpn-install.sh @@ -471,7 +471,8 @@ ifconfig-pool-persist ipp.txt case $DNS in 1) # 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\"" done ;;