is_usable_proxy(): dont check twice if A < 1

This commit is contained in:
mickael
2019-01-09 19:11:05 +00:00
parent 6f0d5c1ffa
commit 9828db79d4

2
ppf.py
View File

@@ -135,7 +135,7 @@ def is_usable_proxy(proxy):
if (A < 1 or A > 254) 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 == 172 and B >= 16 and B <= 31): return False
return True