Added IP log.
This commit is contained in:
5
start.sh
5
start.sh
@@ -109,10 +109,11 @@ do
|
||||
read -t 2
|
||||
if nmcli connection show --active | grep -q $vpn
|
||||
then
|
||||
echo "VPN connection successfully established"
|
||||
ip=$(curl -s https://api.ipify.org)
|
||||
echo "VPN connection successfully established (IP: $ip)"
|
||||
echo "Starting script..."
|
||||
if [ -n "$webhook" ]; then
|
||||
send_webhook "VPN connection successfully established.\nStarting script..."
|
||||
send_webhook "VPN connection successfully established (IP: $ip).\nStarting script..."
|
||||
fi
|
||||
if [ -f "./Microsoft-Rewards-bot/$vpn.json" ]
|
||||
then
|
||||
|
||||
Reference in New Issue
Block a user