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(); }