fix
This commit is contained in:
parent
564d1e125f
commit
056f7eef54
|
|
@ -32,7 +32,7 @@ tun.on('data', (buff) => {
|
|||
const user = Object.values(config.users).find(x => x.addr == p.destinationIp);
|
||||
//(user);
|
||||
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];
|
||||
//(targetIp, targetPort);
|
||||
if (!targetIp || !targetPort) return;
|
||||
|
|
|
|||
Loading…
Reference in New Issue