is_usable_proxy: group the 2 firsts lines
This commit is contained in:
4
ppf.py
4
ppf.py
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user