fix end + add chipmunk server

This commit is contained in:
ChomeNS 2022-11-17 07:42:23 +07:00
parent 69bbd673ca
commit 9d5bc776f4
2 changed files with 7 additions and 2 deletions

View file

@ -49,6 +49,7 @@ module.exports = {
'192.168.1.103': '1002806756885413978',
'kitsune.icu': '1004006678460637315',
'mc.chomens41793.ga': '1010734897796763758',
'71.179.136.66': '1042590315464364032',
},
'prefix': '!',
},
@ -65,6 +66,10 @@ module.exports = {
'host': 'kitsune.icu',
'port': 25565,
},
{
'host': '71.179.136.66',
'port': 25565,
},
// {
// 'host': 'mc.chomens41793.ga',
// 'port': 25565,

View file

@ -16,6 +16,8 @@ function inject(bot, dcclient, config) {
version,
});
bot.once('end', () => srv.close());
srv.on('login', function(client) {
bot.console.info(`[Proxy] ${client.username} connected to proxy`);
let endedClient = false;
@ -98,8 +100,6 @@ function inject(bot, dcclient, config) {
}
targetClient.write(meta.name, data);
});
bot.on('end', () => srv.close());
});
});
};