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 31517ce750
commit 5641aab5bd
4 changed files with 10 additions and 43 deletions

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()