Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall.py
diff options
context:
space:
mode:
Diffstat (limited to 'archinstall.py')
-rw-r--r--archinstall.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/archinstall.py b/archinstall.py
index 33c39827..50e59d04 100644
--- a/archinstall.py
+++ b/archinstall.py
@@ -765,7 +765,7 @@ def guess_country(ip, *positionals, **kwargs):
return result
gi = pygeoip.GeoIP(GEOIP_DB)
- result = gi.country_name_by_addr(ip)
+ result = gi.country_code_by_addr(ip)
else:
log(f'Missing GeoIP database: {GEOIP_DB}', origin='guess_country', level=LOG_LEVELS.ERROR)
return result