From 0411cb2e7d98fd515bc421c9e3f54f1da8b643a8 Mon Sep 17 00:00:00 2001 From: Whispering Wind <151555003+ReturnFI@users.noreply.github.com> Date: Wed, 21 Aug 2024 22:38:00 +0330 Subject: [PATCH] Status WARP IP --- menu.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/menu.sh b/menu.sh index 1b1f9b1..c03869f 100644 --- a/menu.sh +++ b/menu.sh @@ -263,7 +263,12 @@ warp_configure_handler() { python3 $CLI_PATH configure-warp --warp-option "warp plus" --warp-key "$warp_key" ;; 6) python3 $CLI_PATH configure-warp --warp-option "warp" ;; - 7) cd /etc/warp/ && wgcf status ;; + 7) + ip=$(curl -s --interface wgcf --connect-timeout 0.5 http://v4.ident.me) + cd /etc/warp/ && wgcf status + echo + echo -e "${yellow}Warp IP :${NC} ${cyan}$ip ${NC}" ;; + 8) old_ip=$(curl -s --interface wgcf --connect-timeout 0.5 http://v4.ident.me) echo "Current IP address: $old_ip"