MCPcopy Create free account
hub / github.com/celzero/firestack / syncDNSFilters

Function syncDNSFilters

intra/ipn/rpn/yegor.go:2535–2571  ·  view source on GitHub ↗

syncDNSFilters reconciles the Robert DNS filters on the server with the desired state derived from dnsConfig (a csv of presets such as "family,privacy"). It fetches the current filter states once, then issues one PUT per filter that needs to change. The call is a no-op when dnsConfig is empty.

(h *http.Client, ent *WsEntitlement, sess *WsSession, dnsConfig string, force bool)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

makeWsWgFromFunction · 0.85

Calls 9

OneErrFunction · 0.92
IFunction · 0.92
JoinErrFunction · 0.92
dnsConfigToFiltersFunction · 0.85
getDNSFiltersFunction · 0.85
setDNSFilterFunction · 0.85
tokenStateFunction · 0.85
logeFunction · 0.70
ErrorfMethod · 0.65

Tested by

no test coverage detected