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

Method set

internal/exit/dnscache.go:48–52  ·  view source on GitHub ↗
(host, ip string)

Source from the content-addressed store, hash-verified

46}
47
48func (c *dnsCache) set(host, ip string) {
49 c.mu.Lock()
50 c.entries[host] = dnsEntry{ip: ip, expires: time.Now().Add(dnsCacheTTL)}
51 c.mu.Unlock()
52}
53
54func (c *dnsCache) forget(host string) {
55 c.mu.Lock()

Callers 3

getFakeIpForHostnameMethod · 0.80
dialWithDNSCacheFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected