Skip to content

Commit

Permalink
chore: Make unix socket follow homeDir
Browse files Browse the repository at this point in the history
  • Loading branch information
xishang0128 committed Apr 19, 2024
1 parent d4ececa commit 99b274a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hub/route/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,8 @@ func Start(addr string, tlsAddr string, secret string,
}

func StartUnix(addr string, isDebug bool) {
addr = C.Path.Resolve(addr)

dir := filepath.Dir(addr)
if _, err := os.Stat(dir); os.IsNotExist(err) {
if err := os.MkdirAll(dir, 0o755); err != nil {
Expand Down

0 comments on commit 99b274a

Please sign in to comment.