Comments for IPv4 filter from resolve.conf
This commit is contained in:
parent
5aee112442
commit
c780eb400d
1 changed files with 1 additions and 0 deletions
|
|
@ -755,6 +755,7 @@ ifconfig-pool-persist ipp.txt" >> /etc/openvpn/server.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
|
||||
|
|
|
|||
Loading…
Reference in a new issue