From 264713571d349d214ec938911de0de033b8673af Mon Sep 17 00:00:00 2001 From: wwqgtxx Date: Fri, 27 Sep 2024 22:36:19 +0800 Subject: [PATCH] chore: set 0o666 to unix socket file --- hub/route/server.go | 1 + 1 file changed, 1 insertion(+) diff --git a/hub/route/server.go b/hub/route/server.go index 4c22609c..1810a707 100644 --- a/hub/route/server.go +++ b/hub/route/server.go @@ -228,6 +228,7 @@ func startUnix(cfg *Config) { log.Errorln("External controller unix listen error: %s", err) return } + _ = os.Chmod(addr, 0o666) log.Infoln("RESTful API unix listening at: %s", l.Addr().String()) server := &http.Server{