refactor core modules, integrate network stats

This commit is contained in:
Username
2025-12-25 11:13:20 +01:00
parent 2201515b10
commit 269fed55ff
8 changed files with 270 additions and 219 deletions

View File

@@ -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')