mirror of
				https://github.com/angristan/openvpn-install.git
				synced 2025-10-31 14:07:36 +01:00 
			
		
		
		
	Removed useless cat
This commit is contained in:
		| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Nyr
					Nyr