Skip to content

Commit 983ee2e

Browse files
committed
v3.6.1 fix
1 parent 7e27106 commit 983ee2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ ip addr show | awk -F" |/" '{gsub(/^ +/,"")}/inet /{print $(NF), $2}'
105105
echo "Enter the name of the provider interface from the list above (for exaple ppp0 or eth3)"
106106
read ISP
107107
sed -i 's/ISPINPUT/'$ISP'/' $SCRIPTS/*.sh
108-
ISP_IP=$(ip addr show | awk -F" |/" '{gsub(/^ +/,"")}/inet /{print $(NF), $2}' | grep "$ISP" | awk '{print $2}')
108+
ISP_IP=$(ip addr show $ISP | awk -F" |/" '{gsub(/^ +/,"")}/inet /{print $2}')
109109
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
110110

111111
echo "Enter the VPN interface name from the list above (for exaple ovpn_br0 or nwg0)"

0 commit comments

Comments
 (0)