diff options
author | Roger Gonzalez <roger@rogs.me> | 2023-01-16 11:41:35 -0300 |
---|---|---|
committer | Roger Gonzalez <roger@rogs.me> | 2023-01-16 11:41:35 -0300 |
commit | 49f0ab5b4615c1159db7c966cbc8863d38c1cf57 (patch) | |
tree | 92b73dfb339a80fcb3cae89374c85b37ad14bd89 /yams | |
parent | 64564f5889820d041495a6e2c778f027a8233447 (diff) |
Added country detection to check-vpn
Diffstat (limited to 'yams')
-rwxr-xr-x | yams | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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! ⚠️" |