This commit is contained in:
OfficialDakari 2024-04-29 20:23:04 +05:00
parent 564d1e125f
commit 056f7eef54
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ tun.on('data', (buff) => {
const user = Object.values(config.users).find(x => x.addr == p.destinationIp); const user = Object.values(config.users).find(x => x.addr == p.destinationIp);
//(user); //(user);
if (!user) return; if (!user) return;
const targetIp = ips[user.username]; const targetIp = Object.entries(conns).find(x => x[1] == user.username)[0];
const targetPort = ports[user.username]; const targetPort = ports[user.username];
//(targetIp, targetPort); //(targetIp, targetPort);
if (!targetIp || !targetPort) return; if (!targetIp || !targetPort) return;