mirror of
https://github.com/tailscale/tailscale.git
synced 2024-11-25 19:15:34 +00:00
net/dns: rename script variable.
Debian resolvconf is not legacy, it's alive and well, just historically before the other implementations. Signed-off-by: David Anderson <danderson@tailscale.com>
This commit is contained in:
parent
55b39fa945
commit
143e5dd087
@ -18,7 +18,7 @@
|
||||
)
|
||||
|
||||
//go:embed resolvconf-workaround.sh
|
||||
var legacyResolvconfScript []byte
|
||||
var workaroundScript []byte
|
||||
|
||||
// resolvconfConfigName is the name of the config submitted to
|
||||
// resolvconf.
|
||||
@ -105,7 +105,7 @@ func (m *resolvconfManager) SetDNS(config OSConfig) error {
|
||||
if err := os.MkdirAll(resolvconfLibcHookPath, 0755); err != nil {
|
||||
return err
|
||||
}
|
||||
if err := atomicfile.WriteFile(resolvconfHookPath, legacyResolvconfScript, 0755); err != nil {
|
||||
if err := atomicfile.WriteFile(resolvconfHookPath, workaroundScript, 0755); err != nil {
|
||||
return err
|
||||
}
|
||||
m.scriptInstalled = true
|
||||
|
Loading…
Reference in New Issue
Block a user