• exec/websocketservice.js

    From echicken@1:103/705 to Git commit to main/sbbs/master on Sat Nov 27 19:55:31 2021
    https://gitlab.synchro.net/main/sbbs/-/commit/c1bebfc1dd74a83e527b4acd
    Modified Files:
    exec/websocketservice.js
    Log Message:
    Case-insensitive search for headers in ShakeHands. Some proxieslike to mangle these unless you tell them not to.Capture the value of the X-Forwarded-For header, if present, andstash it in FWebSocketHeader['X-Forwarded-For'].
    --- SBBSecho 3.14-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From echicken@1:103/705 to Git commit to main/sbbs/master on Sat Nov 27 19:55:31 2021
    https://gitlab.synchro.net/main/sbbs/-/commit/820b805eeefd3b59621e8aff
    Modified Files:
    exec/websocketservice.js
    Log Message:
    If BBS is using HAProxy ([BBS] Options line has HAPROXY_PROTO)then throw an error if X-Forwarded-For header was not received,or otherwise do the HAProxy thing upon connecting.
    --- SBBSecho 3.14-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From echicken@1:103/705 to Git commit to main/sbbs/master on Sat Nov 27 19:55:31 2021
    https://gitlab.synchro.net/main/sbbs/-/commit/fa3e7132c14916aede750ba9
    Modified Files:
    exec/websocketservice.js
    Log Message:
    Avoid spurious connections to the terminal server - and someother unnecessary work - if the BBS is using HAProxy but we can'tdo the thing with the stuff because we don't have the things.
    --- SBBSecho 3.14-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From echicken@1:103/705 to Git commit to main/sbbs/master on Sat Nov 27 19:55:31 2021
    https://gitlab.synchro.net/main/sbbs/-/commit/a6cb6cc4907fd4116cee1921
    Modified Files:
    exec/websocketservice.js
    Log Message:
    Added inet_pton function borrowed from the internet.Added incomplete send of haproxy protocol header. Need to sortout lookup of target (BBS) IP address.
    --- SBBSecho 3.14-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From echicken@1:103/705 to Git commit to main/sbbs/master on Sat Nov 27 19:55:31 2021
    https://gitlab.synchro.net/main/sbbs/-/commit/2225ced74c74259ba11937b8
    Modified Files:
    exec/websocketservice.js
    Log Message:
    Hurr.But also, this needs some revision since I'm supposed to sendthe header all at once and probably shouldn't be doing a bunchof individual sendBin calls.
    --- SBBSecho 3.14-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From echicken@1:103/705 to Git commit to main/sbbs/master on Sat Nov 27 19:55:32 2021
    https://gitlab.synchro.net/main/sbbs/-/commit/282d9bfc5cce8ead3fd456ec
    Modified Files:
    exec/websocketservice.js
    Log Message:
    Build protocol header as string and send all in one big barforama.
    --- SBBSecho 3.14-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From echicken@1:103/705 to Git commit to main/sbbs/master on Sat Nov 27 19:55:32 2021
    https://gitlab.synchro.net/main/sbbs/-/commit/32238a33cd8b5fd8e951abb0
    Modified Files:
    exec/websocketservice.js
    Log Message:
    Use client address from header
    --- SBBSecho 3.14-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From echicken@1:103/705 to Git commit to main/sbbs/master on Sat Nov 27 19:55:32 2021
    https://gitlab.synchro.net/main/sbbs/-/commit/6bfa4b0b14e08557b2bcd4c9
    Modified Files:
    exec/websocketservice.js
    Log Message:
    Address family must occupy bytes 15 & 16
    --- SBBSecho 3.14-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From echicken@1:103/705 to Git commit to main/sbbs/master on Sat Nov 27 20:06:52 2021
    https://gitlab.synchro.net/main/sbbs/-/commit/1f52abed6eaf9767813c7e4e
    Modified Files:
    exec/websocketservice.js
    Log Message:
    FWebSocketHeader should just be a bare object.
    --- SBBSecho 3.14-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)