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

Function isLikelyVirtualInterface

examples/ts-react-native-chat/scripts/dev.mjs:59–63  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

57}
58
59function isLikelyVirtualInterface(name) {
60 return /vEthernet|WSL|Hyper-V|Docker|Default Switch|VirtualBox|VMware|VPN|Tailscale|ZeroTier|WireGuard|loopback|\blo\b|bridge|\bbr-|tunnel|\btun|tap/iu.test(
61 name,
62 )
63}
64
65function enumerateIpv4Candidates(interfaces) {
66 return Object.entries(interfaces).flatMap(([interfaceName, items]) =>

Callers 1

scoreLanCandidateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected