diff --git a/src/class/CSCLI.ts b/src/class/CSCLI.ts index def229e..a879d5f 100644 --- a/src/class/CSCLI.ts +++ b/src/class/CSCLI.ts @@ -11,8 +11,8 @@ export default class CSCLI { public client: Client; public servers: { - tcp: net.Server, - unix: net.Server, + tcp?: net.Server, + unix?: net.Server, }; public handlers: Collection; @@ -21,6 +21,7 @@ export default class CSCLI { constructor(client: Client) { this.client = client; + this.servers = {}; this.loadKeys(); this.servers.tcp = net.createServer((socket) => { socket.on('data', async (data) => {