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