This commit is contained in:
OfficialDakari 2024-04-30 11:32:05 +05:00
parent 2036c3be62
commit c104f3c26b
1 changed files with 1 additions and 0 deletions

View File

@ -103,6 +103,7 @@ sock.on('message', (msg, info) => {
if (!user) return; if (!user) return;
const targetIp = ips[user.username]; const targetIp = ips[user.username];
const targetPort = ports[user.username]; const targetPort = ports[user.username];
console.log(targetIp, targetPort);
if (!targetIp || !targetPort) return; if (!targetIp || !targetPort) return;
sock.send(encrypt(dec, user.key, config.iv, config.algorithm), targetPort, targetIp); sock.send(encrypt(dec, user.key, config.iv, config.algorithm), targetPort, targetIp);
}); });