From 983ee2e417d165c722acc593d0b21a8c6f8cdbcf Mon Sep 17 00:00:00 2001 From: DennoN-RUS Date: Wed, 8 Feb 2023 21:09:42 +0300 Subject: [PATCH] v3.6.1 fix --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 985086a..9b25a5a 100644 --- a/install.sh +++ b/install.sh @@ -105,7 +105,7 @@ ip addr show | awk -F" |/" '{gsub(/^ +/,"")}/inet /{print $(NF), $2}' echo "Enter the name of the provider interface from the list above (for exaple ppp0 or eth3)" read ISP sed -i 's/ISPINPUT/'$ISP'/' $SCRIPTS/*.sh -ISP_IP=$(ip addr show | awk -F" |/" '{gsub(/^ +/,"")}/inet /{print $(NF), $2}' | grep "$ISP" | awk '{print $2}') +ISP_IP=$(ip addr show $ISP | awk -F" |/" '{gsub(/^ +/,"")}/inet /{print $2}') if [[ $ISP_IP =~ ^\([0-9]{1,3}\.\){3}[0-9]{1,3}$ ]]; then echo "Your id is $ISP_IP"; else ISP_IP="123.123.123.123"; fi echo "Enter the VPN interface name from the list above (for exaple ovpn_br0 or nwg0)"