From 7e7b61d1a265dd982e3e2b3f324dca09562db1d0 Mon Sep 17 00:00:00 2001 From: Swissky Date: Wed, 17 Oct 2018 14:58:29 +0200 Subject: [PATCH] BUGFIX - gen_ip_list's level was incorrect --- core/utils.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/core/utils.py b/core/utils.py index 03f2557..9d97137 100644 --- a/core/utils.py +++ b/core/utils.py @@ -73,22 +73,26 @@ def ip_dns_redirect(ips, ip): ips.add("1ynrnhl.xip.io") def gen_ip_list(ip, level) : + print(level) ips = set() - if level > 1: + if level == 1: ips.add(ip) - if level > 2: + if level == 2: ip_default_local(ips, ip) ip_default_shortcurt(ips, ip) - if level > 3: + if level == 3: ip_dns_redirect(ips, ip) ip_default_cidr(ips, ip) - if level > 4: + if level == 4: ip_decimal_notation(ips, ip) ip_enclosed_alphanumeric(ips, ip) + # if level == 5: + # more bypass will be added here + for ip in ips: yield ip \ No newline at end of file