Use chmod on socket file

pull/1/head
maru 2023-12-28 20:06:06 -05:00
parent 28713ec9db
commit f215a31e92
No known key found for this signature in database
GPG Key ID: 37689350E9CD0F0D
1 changed files with 4 additions and 0 deletions

View File

@ -37,6 +37,10 @@ func main() {
log.Fatalf("failed to create net listener: %s", err)
}
if *network == "unix" {
os.Chmod(*address, 0777)
}
// account
http.HandleFunc("/api/account/info", api.HandleAccountInfo)
http.HandleFunc("/api/account/register", api.HandleAccountRegister)