MCPcopy Create free account
hub / github.com/Hidden-Node/GooseRelayVPN-AndroidClient / newDNSCache

Function newDNSCache

internal/exit/dnscache.go:28–30  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

26}
27
28func newDNSCache() *dnsCache {
29 return &dnsCache{entries: make(map[string]dnsEntry)}
30}
31
32// get returns a cached IP for host, or "" if missing/expired. Expired entries
33// are evicted on access to keep the map small.

Callers 1

NewFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected