From 1439d5f6328acd878851d0ca403d7c96eb181002 Mon Sep 17 00:00:00 2001 From: David Ventura Date: Wed, 1 May 2024 23:54:33 +0200 Subject: [PATCH] reply on the port we should --- session.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/session.ts b/session.ts index 2030c02..cf125fd 100644 --- a/session.ts +++ b/session.ts @@ -103,8 +103,8 @@ export const makeSession = ( send: (msg: DataView) => { const raw = msg.readU16(); const cmd = CommandsByValue[raw]; - logger.log("trace", `>> ${cmd}`); - sock.send(new Uint8Array(msg.buffer), SEND_PORT, session.dst_ip); + logger.log("trace", `>> ${cmd} (${ra.port})`); + sock.send(new Uint8Array(msg.buffer), ra.port, session.dst_ip); }, dst_ip: ra.address, curImage: [],