refactor core modules, integrate network stats
This commit is contained in:
6
misc.py
6
misc.py
@@ -28,6 +28,12 @@ FAIL_CLOSED = 'closed'
|
||||
FAIL_PROXY = 'proxy'
|
||||
FAIL_OTHER = 'other'
|
||||
|
||||
# SSL errors - proxy is actively intercepting (still working for MITM proxies)
|
||||
SSL_ERRORS = frozenset({FAIL_SSL})
|
||||
|
||||
# Connection errors - proxy might be dead, need secondary verification
|
||||
CONN_ERRORS = frozenset({FAIL_TIMEOUT, FAIL_REFUSED, FAIL_UNREACHABLE, FAIL_CLOSED, FAIL_DNS})
|
||||
|
||||
# Levels that go to stderr
|
||||
STDERR_LEVELS = ('warn', 'error')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user