MCPcopy
hub / github.com/tinyhttp/tinyhttp / compileRangeSubnets

Function compileRangeSubnets

packages/proxy-addr/src/index.ts:67–72  ·  view source on GitHub ↗

* Compile `arr` elements into range subnets.

(arr: any[])

Source from the content-addressed store, hash-verified

65 * Compile `arr` elements into range subnets.
66 */
67function compileRangeSubnets(arr: any[]) {
68 const rangeSubnets = new Array(arr.length)
69 for (let i = 0; i < arr.length; i++) rangeSubnets[i] = parseIPNotation(arr[i])
70
71 return rangeSubnets
72}
73/**
74 * Compile range subnet array into trust function.
75 *

Callers 1

compileFunction · 0.85

Calls 1

parseIPNotationFunction · 0.85

Tested by

no test coverage detected