is_usable_proxy(): dont check twice if A < 1
This commit is contained in:
2
ppf.py
2
ppf.py
@@ -135,7 +135,7 @@ def is_usable_proxy(proxy):
|
|||||||
|
|
||||||
if (A < 1 or A > 254) or \
|
if (A < 1 or A > 254) or \
|
||||||
(B > 255 or C > 255 or D > 255) or \
|
(B > 255 or C > 255 or D > 255) or \
|
||||||
(A == 10 or A == 127 or A == 0) or \
|
(A == 10 or A == 127) or \
|
||||||
(A == 192 and B == 168) or \
|
(A == 192 and B == 168) or \
|
||||||
(A == 172 and B >= 16 and B <= 31): return False
|
(A == 172 and B >= 16 and B <= 31): return False
|
||||||
return True
|
return True
|
||||||
|
|||||||
Reference in New Issue
Block a user