Enhance MTProxy checker functionality by introducing a new -probe flag for selecting between fast and deep probing modes. Update README and Docker documentation to reflect this change, including details on timeout handling and exit codes for improved clarity.
Publish mtproxy_checker Docker image / test (push) Successful in 6s
Publish mtproxy_checker Docker image / build-and-push (push) Successful in 51s

This commit is contained in:
Denozordec committed 2026-04-11 13:48:02 +07:00
1 parent 6f2dbcbca3
commit 935401b1f8
7 files changed
+105 -17

No files matched your search

+3
View File
@@ -16,6 +16,9 @@ func Classify(err error) (exitCode int, message string) {
if errors.Is(err, checker.ErrProxyClosed) {
return 3, err.Error()
}
if errors.Is(err, checker.ErrNoDataAfterHeader) {
return 1, err.Error()
}
if errors.Is(err, context.DeadlineExceeded) {
return 4, "timeout"
}