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 :