MCPcopy Create free account
hub / github.com/cmliu/CF-Workers-CheckProxyIP / checkJsonResponse

Function checkJsonResponse

_worker.js:5544–5549  ·  view source on GitHub ↗
(data, status = 200)

Source from the content-addressed store, hash-verified

5542}
5543
5544function checkJsonResponse(data, status = 200) {
5545 return new Response(JSON.stringify(data, null, 2), {
5546 status,
5547 headers: CHECK_RESPONSE_HEADERS,
5548 });
5549}
5550
5551// 优先使用探针返回的 ipType;若没有 ipType,再回退到根据出口 IP 字符串判定。
5552function getExitFamily(result) {

Callers 1

handleCheckProxyRequestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected