MCPcopy Create free account
hub / github.com/TanStack/ai / enumerateIpv4Candidates

Function enumerateIpv4Candidates

examples/ts-react-native-chat/scripts/dev.mjs:65–72  ·  view source on GitHub ↗
(interfaces)

Source from the content-addressed store, hash-verified

63}
64
65function enumerateIpv4Candidates(interfaces) {
66 return Object.entries(interfaces).flatMap(([interfaceName, items]) =>
67 (items ?? []).map((info) => ({
68 ...info,
69 interfaceName,
70 })),
71 )
72}
73
74function scoreLanCandidate(candidate) {
75 let score = 0

Callers 1

pickLanAddressInfoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected