From 2e5f5f6fe91da1066f03b74c1253d6d1c8333cfe Mon Sep 17 00:00:00 2001 From: Jing Ling Date: Sat, 29 Aug 2020 17:46:33 +0800 Subject: [PATCH] fixed --- modules/iscdn.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/iscdn.py b/modules/iscdn.py index 1d60a49..70ea532 100644 --- a/modules/iscdn.py +++ b/modules/iscdn.py @@ -69,9 +69,8 @@ def check_cdn(data): if check_header_key(header): data[index]['cdn'] = 1 continue - kind = item.get('type') ip = item.get('ip') - if kind == 'A' and ip: + if ip: if check_cdn_cidr(ip): data[index]['cdn'] = 1 continue