mirror of
https://github.com/namibia/openvpn-install.git
synced 2024-12-22 14:58:54 +00:00
Removed useless cat
This commit is contained in:
parent
091ef01a8b
commit
936a8b8ff0
@ -176,7 +176,7 @@ else
|
||||
sed -i 's|;push "redirect-gateway def1 bypass-dhcp"|push "redirect-gateway def1 bypass-dhcp"|' server.conf
|
||||
sed -i "s|port 1194|port $PORT|" server.conf
|
||||
# Obtain the resolvers from resolv.conf and use them for OpenVPN
|
||||
cat /etc/resolv.conf | grep -v '#' | 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
|
||||
sed -i "/;push \"dhcp-option DNS 208.67.220.220\"/a\push \"dhcp-option DNS $line\"" server.conf
|
||||
done
|
||||
# Listen at port 53 too if user wants that
|
||||
|
Loading…
Reference in New Issue
Block a user