Skip to content

Commit bbcfd7a

Browse files
committed
Country code instead of name
1 parent 9d98495 commit bbcfd7a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

archinstall.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -765,7 +765,7 @@ def guess_country(ip, *positionals, **kwargs):
765765
return result
766766

767767
gi = pygeoip.GeoIP(GEOIP_DB)
768-
result = gi.country_name_by_addr(ip)
768+
result = gi.country_code_by_addr(ip)
769769
else:
770770
log(f'Missing GeoIP database: {GEOIP_DB}', origin='guess_country', level=LOG_LEVELS.ERROR)
771771
return result

0 commit comments

Comments
 (0)