From cd32e0cbaede3c4ada5c02901420a754286a71dd Mon Sep 17 00:00:00 2001 From: Matthew R Date: Tue, 20 Apr 2021 00:02:05 -0400 Subject: [PATCH] fix --- src/class/CSCLI.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/class/CSCLI.ts b/src/class/CSCLI.ts index a879d5f..9561acd 100644 --- a/src/class/CSCLI.ts +++ b/src/class/CSCLI.ts @@ -118,7 +118,9 @@ export default class CSCLI { this.servers.tcp.listen(8124, () => { this.client.signale.success('[CSD-COMM] Listen - TCP:8124'); }); - this.servers.unix.listen('/var/run/csd-comm.sock', () => { + this.servers.unix.listen('/var/run/csd-comm.sock', async () => { + await fs.chmod('/var/run/csd-comm.sock', 770); + await fs.chown('/var/run/csd-comm.sock', 0, 115); this.client.signale.success('[CSD-COMM] Listen - UNIX:/var/run/csd-comm.sock'); }); }