Browse Source
This commit adds functionality to retrieve the country code of the external IP address. If the country code is not already stored in a file, it uses curl to fetch it from https://ipapi.co/country and saves it in "${tmpdir}/countrycode.txt". If curl fails, an error message is displayed.pull/4295/head
1 changed files with 14 additions and 0 deletions
Loading…
Reference in new issue