From 77e4fb91a34c317da89fb49c10023ec2cf439ba2 Mon Sep 17 00:00:00 2001 From: Matthew R Date: Mon, 19 Apr 2021 23:54:02 -0400 Subject: [PATCH] fix --- src/class/CSCLI.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/class/CSCLI.ts b/src/class/CSCLI.ts index b043a6d..def229e 100644 --- a/src/class/CSCLI.ts +++ b/src/class/CSCLI.ts @@ -32,6 +32,16 @@ export default class CSCLI { } }); }); + this.servers.unix = net.createServer((socket) => { + socket.on('data', async (data) => { + try { + await this.unixHandle(socket, data); + } catch (err) { + await this.client.util.handleError(err); + socket.destroy(); + } + }); + }); this.init(); }