mirror of
				https://github.com/angristan/openvpn-install.git
				synced 2025-10-31 05:57:36 +01:00 
			
		
		
		
	Fix the network interface variable
Fix for https://github.com/Angristan/OpenVPN-install/pull/83#issuecomment-343758329
This commit is contained in:
		| @@ -87,7 +87,7 @@ if [[ "$IP" = "" ]]; then | ||||
| 	IP=$(wget -qO- ipv4.icanhazip.com) | ||||
| fi | ||||
| # Get Internet network interface with default route | ||||
| NIC=$(ip -4 route ls | grep default | grep -Po '(?<=dev )(\S+)') | ||||
| NIC=$(ip -4 route ls | grep default | grep -Po '(?<=dev )(\S+)' | head -1) | ||||
|  | ||||
| if [[ -e /etc/openvpn/server.conf ]]; then | ||||
| 	while : | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Angristan
					Angristan