forked from engineering/cloudservices
fix
parent
f3ccfe11cd
commit
77e4fb91a3
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue