From 6479212c451c86e82be36f7b2a48abc1227ec4f9 Mon Sep 17 00:00:00 2001 From: hwdsl2 Date: Mon, 28 Nov 2016 13:11:57 -0600 Subject: [PATCH] Improve workaround - Improve workaround for non-eth0 network interfaces - Fixed an issue where it cannot be used with sudo --- vpnsetup.sh | 8 +++++--- vpnsetup_centos.sh | 8 +++++--- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/vpnsetup.sh b/vpnsetup.sh index 799c5aa..eb76ef3 100755 --- a/vpnsetup.sh +++ b/vpnsetup.sh @@ -70,10 +70,12 @@ cat 1>&2 <<'EOF' DO NOT RUN THIS SCRIPT ON YOUR PC OR MAC! -If running on a server, you may fix this error by first -setting this variable and re-run the script: +If running on a server, try this workaround: -export VPN_IFACE="$(route | grep '^default' | grep -o '[^ ]*$')" +VPN_IFACE="$(route | grep '^default' | grep -o '[^ ]*$')" +EOF +cat 1>&2 <&2 <<'EOF' DO NOT RUN THIS SCRIPT ON YOUR PC OR MAC! -If running on a server, you may fix this error by first -setting this variable and re-run the script: +If running on a server, try this workaround: -export VPN_IFACE="$(route | grep '^default' | grep -o '[^ ]*$')" +VPN_IFACE="$(route | grep '^default' | grep -o '[^ ]*$')" +EOF +cat 1>&2 <