diff --git a/geofirewall.py b/geofirewall.py index acd7c1d..02543f4 100755 --- a/geofirewall.py +++ b/geofirewall.py @@ -43,7 +43,7 @@ def load_DB(): sys.exit('file {}, line {}: {}'.format(csv_locations_file, csv_locations_reader.line_num, error)) if COUNTRYCODE: - country_blocks_file = root + '/' + dir + '/' + 'GeoLite2-Country-Blocks-IPv4.csv' + country_blocks_file = root + '/' + archive_dir + '/' + 'GeoLite2-Country-Blocks-IPv4.csv' with open(country_blocks_file, newline='') as csv_country_blocks_file: csv_country_blocks_reader = csv.DictReader(csv_country_blocks_file) try: