fix merge conflict
This commit is contained in:
parent
199df3fc25
commit
a76a34939d
1 changed files with 0 additions and 15 deletions
|
|
@ -771,21 +771,6 @@ ifconfig-pool-persist ipp.txt" >>/etc/openvpn/server.conf
|
||||||
|
|
||||||
# DNS resolvers
|
# DNS resolvers
|
||||||
case $DNS in
|
case $DNS in
|
||||||
1)
|
|
||||||
# Locate the proper resolv.conf
|
|
||||||
# Needed for systems running systemd-resolved
|
|
||||||
if grep -q "127.0.0.53" "/etc/resolv.conf"; then
|
|
||||||
RESOLVCONF='/run/systemd/resolve/resolv.conf'
|
|
||||||
else
|
|
||||||
RESOLVCONF='/etc/resolv.conf'
|
|
||||||
fi
|
|
||||||
# Obtain the resolvers from resolv.conf and use them for OpenVPN
|
|
||||||
sed -ne 's/^nameserver[[:space:]]\+\([^[:space:]]\+\).*$/\1/p' $RESOLVCONF | while read -r line; do
|
|
||||||
# Copy, if it's a IPv4 |or| if IPv6 is enabled, IPv4/IPv6 does not matter
|
|
||||||
if [[ "$line" =~ ^[0-9.]*$ ]] || [[ "$IPV6_SUPPORT" == 'y' ]]; then
|
|
||||||
echo "push \"dhcp-option DNS $line\"" >> /etc/openvpn/server.conf
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
1) # Current system resolvers
|
1) # Current system resolvers
|
||||||
# Locate the proper resolv.conf
|
# Locate the proper resolv.conf
|
||||||
# Needed for systems running systemd-resolved
|
# Needed for systems running systemd-resolved
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue