mirror of
https://github.com/shmilylty/OneForAll.git
synced 2026-08-26 04:47:48 +08:00
fixed
This commit is contained in:
+1
-2
@@ -69,9 +69,8 @@ def check_cdn(data):
|
|||||||
if check_header_key(header):
|
if check_header_key(header):
|
||||||
data[index]['cdn'] = 1
|
data[index]['cdn'] = 1
|
||||||
continue
|
continue
|
||||||
kind = item.get('type')
|
|
||||||
ip = item.get('ip')
|
ip = item.get('ip')
|
||||||
if kind == 'A' and ip:
|
if ip:
|
||||||
if check_cdn_cidr(ip):
|
if check_cdn_cidr(ip):
|
||||||
data[index]['cdn'] = 1
|
data[index]['cdn'] = 1
|
||||||
continue
|
continue
|
||||||
|
|||||||
Reference in New Issue
Block a user