MCPcopy
hub / github.com/HisMax/RedInk / _looks_like_proxy_refused

Function _looks_like_proxy_refused

backend/errors.py:330–336  ·  view source on GitHub ↗
(text: str)

Source from the content-addressed store, hash-verified

328
329
330def _looks_like_proxy_refused(text: str) -> bool:
331 return (
332 "proxyerror" in text
333 and ("connection refused" in text or "failed to establish a new connection" in text)
334 ) or (
335 "127.0.0.1" in text and "7890" in text and "connection refused" in text
336 )
337
338
339def _looks_like_fake_ip_tls(text: str) -> bool:

Callers 1

classify_errorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected