From 9af964694467769cb9559f08a2c2b8bf8c59ceed Mon Sep 17 00:00:00 2001 From: simono41 Date: Sun, 1 Oct 2017 17:31:24 +0200 Subject: [PATCH] fix --- openvpn-install-stable.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openvpn-install-stable.sh b/openvpn-install-stable.sh index 3b49d31..e8f7a11 100755 --- a/openvpn-install-stable.sh +++ b/openvpn-install-stable.sh @@ -89,7 +89,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 -m 1 | grep -Po '(?<=dev )(\S+)') if [[ -e /etc/openvpn/server.conf ]]; then while :