改为类

This commit is contained in:
Jing Ling
2020-08-19 02:13:35 +08:00
parent 0fb8f96272
commit 97f13b3851
2 changed files with 10 additions and 8 deletions
+1 -1
View File
@@ -70,7 +70,7 @@ def deal_output(output_path):
logger.log('INFOR', f'Processing resolved results')
records = dict() # 用来记录所有域名解析数据
ip_asn = IPAsnInfo()
ip_geo = IpGeoInfo
ip_geo = IpGeoInfo()
db_path = settings.data_storage_dir.joinpath('ip2region.db')
ip_reg = IpRegInfo(db_path)
with open(output_path) as fd: