mirror of
https://github.com/pagefaultgames/rogueserver.git
synced 2025-03-15 02:24:38 +08:00
Use chmod on socket file
This commit is contained in:
parent
28713ec9db
commit
f215a31e92
@ -37,6 +37,10 @@ func main() {
|
|||||||
log.Fatalf("failed to create net listener: %s", err)
|
log.Fatalf("failed to create net listener: %s", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if *network == "unix" {
|
||||||
|
os.Chmod(*address, 0777)
|
||||||
|
}
|
||||||
|
|
||||||
// account
|
// account
|
||||||
http.HandleFunc("/api/account/info", api.HandleAccountInfo)
|
http.HandleFunc("/api/account/info", api.HandleAccountInfo)
|
||||||
http.HandleFunc("/api/account/register", api.HandleAccountRegister)
|
http.HandleFunc("/api/account/register", api.HandleAccountRegister)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user