is_usable_proxy: group the 2 firsts lines

This commit is contained in:
mickael
2019-01-09 19:23:09 +00:00
parent 9828db79d4
commit 33887385f0

4
ppf.py
View File

@@ -133,8 +133,8 @@ def is_usable_proxy(proxy):
C = int(octets[2])
D = int(octets[3])
if (A < 1 or A > 254) or \
(B > 255 or C > 255 or D > 255) or \
if (A < 1 or A > 254 or \
B > 255 or C > 255 or D > 255) or \
(A == 10 or A == 127) or \
(A == 192 and B == 168) or \
(A == 172 and B >= 16 and B <= 31): return False