refactor: Rename project from dns-helper to ekdns across all files and documentation
This commit is contained in:
@@ -9,8 +9,8 @@ import (
|
||||
)
|
||||
|
||||
const (
|
||||
StartMarker = "# DNSHelper <<-> START CONFIG"
|
||||
EndMarker = "# DNSHelper <->> END CONFIG"
|
||||
StartMarker = "# ekDNSHelper <<-> START CONFIG"
|
||||
EndMarker = "# ekDNSHelper <->> END CONFIG"
|
||||
)
|
||||
|
||||
// DNSEntry represents a single IP-to-hostname mapping.
|
||||
@@ -116,7 +116,7 @@ func (m *Manager) Write(hf *HostsFile, backupDir string) error {
|
||||
// This is required so the subsequent rename stays on the same filesystem
|
||||
// partition (avoids EXDEV on Unix).
|
||||
success := false
|
||||
tempFile, err := m.fs.CreateTemp(filepath.Dir(hf.Path), ".dns-helper-tmp-*")
|
||||
tempFile, err := m.fs.CreateTemp(filepath.Dir(hf.Path), ".ekdns-tmp-*")
|
||||
if err != nil {
|
||||
m.fs.Remove(backupPath) //nolint:errcheck
|
||||
return fmt.Errorf("creating temp file: %w", err)
|
||||
|
||||
Reference in New Issue
Block a user