(haystack, needle, start = 0)
| 5524 | } |
| 5525 | |
| 5526 | function indexOfBytes(haystack, needle, start = 0) { |
| 5527 | outer: for (let i = start; i <= haystack.length - needle.length; i++) { |
| 5528 | for (let j = 0; j < needle.length; j++) { |
| 5529 | if (haystack[i + j] !== needle[j]) { |
| 5530 | continue outer; |
| 5531 | } |
| 5532 | } |
| 5533 | return i; |
| 5534 | } |
| 5535 | return -1; |
| 5536 | } |
| 5537 | |
| 5538 | function pickExitIp(payload) { |
| 5539 | // 探针 JSON 里优先取 ip,兼容部分接口用 ipAddress 命名。 |
no outgoing calls
no test coverage detected