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

Function isLikelyPhysicalInterface

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

Source from the content-addressed store, hash-verified

53}
54
55function isLikelyPhysicalInterface(name) {
56 return /\b(wi-?fi|wireless|wlan|ethernet)\b|^(en|eth)\d+/iu.test(name)
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(

Callers 1

scoreLanCandidateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected