MCPcopy
hub / github.com/nextdns/nextdns / writeTempResolvconfConf

Function writeTempResolvconfConf

host/dns_bsd.go:177–186  ·  view source on GitHub ↗
(tmpPath string)

Source from the content-addressed store, hash-verified

175}
176
177func writeTempResolvconfConf(tmpPath string) error {
178 _ = os.Remove(tmpPath)
179 tmp, err := os.Create(tmpPath)
180 if err != nil {
181 return err
182 }
183 defer tmp.Close()
184 _, err = fmt.Fprintln(tmp, "resolvconf=NO")
185 return err
186}

Callers 1

setupResolvconfConfFunction · 0.85

Calls 1

CloseMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…