cname统一小写

This commit is contained in:
Jing Ling
2020-11-11 00:53:52 +08:00
parent bcb59beb72
commit 68d8987eea
2 changed files with 7 additions and 5 deletions
+2 -2
View File
@@ -384,8 +384,8 @@ def gen_result_infos(items, infos, subdomains, ip_times, wc_ips, wc_ttl):
have_a_record = True
ttl = answer.get('ttl')
ttls.append(ttl)
cname = answer.get('name')[:-1]
cnames.append(cname) # 去除最右边的`.`点号
cname = answer.get('name')[:-1].lower() # 去除最右边的`.`点号
cnames.append(cname)
ip = answer.get('data')
ips.append(ip)
num = ip_times.get(ip)