mirror of
https://github.com/shmilylty/OneForAll.git
synced 2026-08-25 20:37:48 +08:00
content改ip
This commit is contained in:
+3
-3
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user