From 49f0ab5b4615c1159db7c966cbc8863d38c1cf57 Mon Sep 17 00:00:00 2001 From: Roger Gonzalez Date: Mon, 16 Jan 2023 11:41:35 -0300 Subject: Added country detection to check-vpn --- yams | 2 ++ 1 file changed, 2 insertions(+) diff --git a/yams b/yams index ba64946..300ae8d 100755 --- a/yams +++ b/yams @@ -53,10 +53,12 @@ if [ $option == "check-vpn" ]; then echo "Getting your qBittorrent IP..." qbittorrent_ip=$($dc exec -it qbittorrent sh -c "curl -s ifconfig.me"); echo "$qbittorrent_ip" + echo "Your country in qBittorrent is $($dc exec -it qbittorrent sh -c 'curl -s https://am.i.mullvad.net/country')" echo echo "Getting your IP..." your_ip=$(curl -s ifconfig.me) echo "$your_ip" + echo "Your local IP country is $(curl -s https://am.i.mullvad.net/country)" echo if [ $qbittorrent_ip == $your_ip ]; then send_error_message "Your IPs are the same! qBittorrent is NOT working! ⚠️" -- cgit v1.2.3