MCPcopy Create free account
hub / github.com/pion/ice / problematicNetworkInterfaces

Function problematicNetworkInterfaces

net_test.go:42–58  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

40}
41
42func problematicNetworkInterfaces(s string) (keep bool) {
43 defaultDockerBridgeNetwork := strings.Contains(s, "docker")
44 customDockerBridgeNetwork := strings.Contains(s, "br-")
45
46 // Apple filters
47 accessPoint := strings.Contains(s, "ap")
48 appleWirelessDirectLink := strings.Contains(s, "awdl")
49 appleLowLatencyWLANInterface := strings.Contains(s, "llw")
50 appleTunnelingInterface := strings.Contains(s, "utun")
51
52 return !defaultDockerBridgeNetwork &&
53 !customDockerBridgeNetwork &&
54 !accessPoint &&
55 !appleWirelessDirectLink &&
56 !appleLowLatencyWLANInterface &&
57 !appleTunnelingInterface
58}
59
60func mustAddr(t *testing.T, ip net.IP) netip.Addr {
61 t.Helper()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…