content改ip

This commit is contained in:
Jing Ling
2020-08-29 17:44:22 +08:00
parent a2dcc6dde5
commit 4bf37ca5d5
5 changed files with 15 additions and 15 deletions
+3 -3
View File
@@ -70,9 +70,9 @@ def check_cdn(data):
data[index]['cdn'] = 1
continue
kind = item.get('type')
content = item.get('content')
if kind == 'A' and content:
if check_cdn_cidr(content):
ip = item.get('ip')
if kind == 'A' and ip:
if check_cdn_cidr(ip):
data[index]['cdn'] = 1
continue
asn = item.get('asn')