• 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)
  • From echicken@1:103/705 to Git commit to main/sbbs/master on Thu Feb 23 19:57:49 2023
    https://gitlab.synchro.net/main/sbbs/-/commit/e6021f4ec5f722b67156e3d8
    Modified Files:
    exec/websocketservice.js
    Log Message:
    Write websocket client IP address to temp file.Scripts running on upstream (terminal) server can find actualclient IP in:system.temp_path + 'sbbs-ws-' + client.socket.remote_port + '.ip'
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From echicken@1:103/705 to Git commit to main/sbbs/master on Thu Feb 23 20:43:37 2023
    https://gitlab.synchro.net/main/sbbs/-/commit/26df9c31e4397cf536c2192e
    Modified Files:
    exec/websocketservice.js
    Log Message:
    Better cleanup of ipFileChanged scope of ipFile variable so we can access it in thefinally{} block. Should prevent stale files hanging around ifthe service encounters an error.
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From echicken@1:103/705 to Git commit to main/sbbs/master on Fri Feb 24 10:31:47 2023
    https://gitlab.synchro.net/main/sbbs/-/commit/f7cd4ef3e7a6524a300b772c
    Modified Files:
    exec/websocketservice.js
    Log Message:
    Create ip temp file immediately on connect.
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rick Parrish@1:103/705 to Git commit to main/sbbs/master on Mon Sep 4 14:56:38 2023
    https://gitlab.synchro.net/main/sbbs/-/commit/bc915feefb6032f1ab18b9b4
    Modified Files:
    exec/websocketservice.js
    Log Message:
    Speed up file transfers.
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell@1:103/705 to Git commit to main/sbbs/master on Mon Sep 4 14:56:38 2023
    https://gitlab.synchro.net/main/sbbs/-/commit/540f76d9615bb287ac428ed5
    Modified Files:
    exec/websocketservice.js
    Log Message:
    Merge branch 'Ree/websocketservice-speedup' into 'master'Speed up file transfers.See merge request main/sbbs!327
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rick Parrish@1:103/705 to Git commit to main/sbbs/master on Sat Sep 9 10:27:11 2023
    https://gitlab.synchro.net/main/sbbs/-/commit/639fad65bad024219a54c84e
    Modified Files:
    exec/websocketservice.js
    Log Message:
    Add support for binary frames to websocket service
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell@1:103/705 to Git commit to main/sbbs/master on Sat Sep 9 10:27:11 2023
    https://gitlab.synchro.net/main/sbbs/-/commit/c9e643727d8b91b3f18cc8a5
    Modified Files:
    exec/websocketservice.js
    Log Message:
    Merge branch 'Ree/websocketservice-support-binary' into 'master'Add support for binary frames to websocket serviceSee merge request main/sbbs!330
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell (on Debian Linux)@1:103/705 to Git commit to main/sbbs/master on Mon Sep 25 00:09:04 2023
    https://gitlab.synchro.net/main/sbbs/-/commit/e77d0fe73f3d4ec01e8bc1ba
    Modified Files:
    exec/websocketservice.js
    Log Message:
    Use system.temp_dir (configurable by sysop) instead of system.temp_path

    Fixes issue #648
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From echicken@1:103/705 to CVS commit on Fri Oct 20 20:19:52 2023
    exec websocketservice.js 1.13 1.14
    Update of /cvsroot/sbbs/exec
    In directory cvs:/tmp/cvs-serv28816

    Modified Files:
    websocketservice.js
    Log Message:
    If arg has nondigits or is an invalid port, consider it an address.
    Elsewise if it's a number, treat it as a port.
    The last "hostname" and "port" encountered on the commandline according
    to these rules is what the websocket server done gonna connect to.


    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)