diff --git a/internal/web/router.go b/internal/web/router.go index 8becfa3..962e3da 100644 --- a/internal/web/router.go +++ b/internal/web/router.go @@ -1,6 +1,8 @@ package web import ( + "os" + "github.com/gin-gonic/gin" "github.com/spf13/viper" ) @@ -16,6 +18,7 @@ func InitRouter() { if viper.GetBool("UseSocket") { router.RunUnix(viper.GetString("BindSocket")) + os.Chmod(viper.GetString("BindSocket"), 0775) } else { router.Run(viper.GetString("BindAddress")) }