From 2b5a7964c19b23ef05ed11a37ad3a6ef0092ba69 Mon Sep 17 00:00:00 2001 From: Lightemerald Date: Thu, 18 May 2023 22:19:56 +0200 Subject: [PATCH] Added IP log. --- start.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/start.sh b/start.sh index 986376f..de19d09 100644 --- a/start.sh +++ b/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