fix
This commit is contained in:
parent
c7b2e04e17
commit
9af9646944
1 changed files with 1 additions and 1 deletions
|
@ -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 :
|
||||
|
|
Loading…
Reference in a new issue