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);
|
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;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue