This commit is contained in:
parent
2036c3be62
commit
c104f3c26b
|
|
@ -103,6 +103,7 @@ sock.on('message', (msg, info) => {
|
|||
if (!user) return;
|
||||
const targetIp = ips[user.username];
|
||||
const targetPort = ports[user.username];
|
||||
console.log(targetIp, targetPort);
|
||||
if (!targetIp || !targetPort) return;
|
||||
sock.send(encrypt(dec, user.key, config.iv, config.algorithm), targetPort, targetIp);
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue