lesavka/scripts/manual/vpn-test.sh

11 lines
299 B
Bash
Executable File

#!/usr/bin/env bash
# scripts/manual/vpn-test.sh
#
# Manual: show current public IP/geolocation after VPN changes.
# Not part of CI; uses public HTTP APIs.
set -euo pipefail
IP="$(curl -fsS https://api.ipify.org)"
echo "IP: $IP"
curl -fsS "http://ip-api.com/json/${IP}?fields=country,city,lat,lon"