Listen on AF_UNIX socket if -addr is a path

This commit is contained in:
Rohit Vighne
2025-03-26 12:24:50 -04:00
parent a51da7b8ec
commit 76e5e54a67
2 changed files with 28 additions and 7 deletions

View File

@@ -90,6 +90,10 @@ func main() {
log.SetOutput(os.Stdout)
}
if open && strings.ContainsRune(addr, os.PathSeparator) {
log.Fatal("Cannot open unix socket path (", addr, ") in browser")
}
if db == "" {
configPath, err := os.UserConfigDir()
if err != nil {