Subj : Re: synchronet behind a reverse proxy To : echicken From : martylake Date : Thu Nov 25 2021 23:44:08 Re: Re: synchronet behind a reverse proxy By: echicken to martylake on Fri Nov 26 2021 06:50 am > If I magically got everything right on the first try, then that should do it > - but I'm not optimistic that's going to happen. At least we've got > something to start with. I tested your implementation, it almost worked, I had to add padding so that the address length in bytes occupates two bytes (15th and 16th), instead of one, as indicated by the spec. Can I paste a git patch in SyncTERM ? Is it proper etiquette ? -+- exec/websocketservice.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exec/websocketservice.js b/exec/websocketservice.js index 08bdbb7a1..25b166f71 100644 -+- a/exec/websocketservice.js +++ b/exec/websocketservice.js @@ -95,9 +95,9 @@ try { if (UsingHAProxy()) { var hapstr = '\x0D\x0A\x0D\x0A\x00\x0D\x0A\x51\x55\x49\x54\x0A\x21'; if (client.socket.family === PF_INET) { - hapstr += '\x11\x0C'; + hapstr += '\x11\x00\x0C'; } else if (client.socket.family === PF_INET6) { - hapstr += '\x21\x24'; + hapstr += '\x21\x00\x24'; } hapstr += inet_pton(client.ip_address); hapstr += inet_pton(FServerSocket.remote_ip_address); -- 2.30.2 --- SBBSecho 3.14-Linux * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705) .