Added IP log.

This commit is contained in:
2023-05-18 22:19:56 +02:00
parent 7f29a6cb96
commit 2b5a7964c1

View File

@@ -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