summaryrefslogtreecommitdiffstats
path: root/src/connections/openvpn
diff options
context:
space:
mode:
Diffstat (limited to 'src/connections/openvpn')
-rw-r--r--src/connections/openvpn8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/connections/openvpn b/src/connections/openvpn
index ded6bf5..cb0adde 100644
--- a/src/connections/openvpn
+++ b/src/connections/openvpn
@@ -25,17 +25,9 @@ openvpn_up() {
: >/etc/resolv.conf
[[ -n "$DOMAIN" ]] && echo "domain $DOMAIN" >>/etc/resolv.conf
[[ -n "$SEARCH" ]] && echo "search $SEARCH" >>/etc/resolv.conf
-
for dns in "${DNS[@]}"; do
echo "nameserver $dns" >>/etc/resolv.conf
done
- elif [[ -n "$DNS1" ]]; then # support older 'ethernet' syntax.
- [[ -e /etc/resolv.conf ]] && cp /etc/resolv.conf /tmp/openvpn-$1-resolv.conf
- : >/etc/resolv.conf
- [[ -n "$DOMAIN" ]] && echo "domain $DOMAIN" >>/etc/resolv.conf
- [[ -n "$SEARCH" ]] && echo "search $SEARCH" >>/etc/resolv.conf
- [[ -n "$DNS1" ]] && echo "nameserver $DNS1" >>/etc/resolv.conf
- [[ -n "$DNS2" ]] && echo "nameserver $DNS2" >>/etc/resolv.conf
fi
}