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.
This commit is contained in:
1 parent
6f2dbcbca3
commit
935401b1f8
7 files changed
+105
-17
No files matched your search
@@ -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"
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user