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

Function pickExitIp

_worker.js:5538–5542  ·  view source on GitHub ↗
(payload)

Source from the content-addressed store, hash-verified

5536}
5537
5538function pickExitIp(payload) {
5539 // 探针 JSON 里优先取 ip,兼容部分接口用 ipAddress 命名。
5540 const ip = payload?.ip ?? payload?.ipAddress;
5541 return typeof ip === 'string' && ip ? ip : null;
5542}
5543
5544function checkJsonResponse(data, status = 200) {
5545 return new Response(JSON.stringify(data, null, 2), {

Callers 2

getExitFamilyFunction · 0.85
handleCheckProxyRequestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected