1
0
spogulis no https://github.com/angristan/openvpn-install.git synced 2025-09-18 18:20:45 +02:00

Fix the network interface variable

Fix for https://github.com/Angristan/OpenVPN-install/pull/83#issuecomment-343758329
Šī revīzija ir iekļauta:
Angristan 2017-11-12 19:54:44 +01:00 revīziju iesūtīja GitHub
vecāks dcec3f12a4
revīzija aca3b4a019
Šim parakstam datu bāzē netika atrasta zināma atslēga
GPG atslēgas ID: 4AEE18F83AFDEB23

Parādīt failu

@ -87,7 +87,7 @@ if [[ "$IP" = "" ]]; then
IP=$(wget -qO- ipv4.icanhazip.com) IP=$(wget -qO- ipv4.icanhazip.com)
fi fi
# Get Internet network interface with default route # 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 if [[ -e /etc/openvpn/server.conf ]]; then
while : while :