all: unify handling user home directory logic

This commit is contained in:
Cuong Manh Le
2025-05-05 23:28:49 +07:00
committed by Cuong Manh Le
parent 6286a71f2a
commit 47c04bf0f6
4 changed files with 10 additions and 43 deletions
+1 -1
View File
@@ -985,7 +985,7 @@ NOTE: Uninstalling will set DNS to values provided by DHCP.`,
})
// Windows forwarders file.
if hasLocalDnsServerRunning() {
files = append(files, absHomeDir(windowsForwardersFilename))
files = append(files, ctrld.AbsHomeDir(windowsForwardersFilename))
}
// Binary itself.
bin, _ := os.Executable()