• xtrn/wttr.in/locator.js

    From echicken@VERT to Git commit to main/sbbs/master on Wed Feb 22 10:52:55 2023
    https://gitlab.synchro.net/main/sbbs/-/commit/fa3a836ddd3ce9eeae291e56
    Modified Files:
    xtrn/wttr.in/locator.js
    Log Message:
    Fix addrRe

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From echicken@VERT to Git commit to main/sbbs/master on Wed Feb 22 11:13:48 2023
    https://gitlab.synchro.net/main/sbbs/-/commit/021949b09269911db654fcf6
    Modified Files:
    xtrn/wttr.in/locator.js
    Log Message:
    Use client.ip_address instead of user.ip_address; check if protocol is Telnet or SSH

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From echicken@VERT to Git commit to main/sbbs/master on Thu Feb 23 19:57:49 2023
    https://gitlab.synchro.net/main/sbbs/-/commit/f5170f9c5fc82ac8ffe7fde4
    Modified Files:
    xtrn/wttr.in/locator.js
    Log Message:
    Read client IP from websocketservice-provided temp file if exists.

    Ditch TTYLOC method; no longer needed. (Note: websocketservice's
    UTF-8 handling rendered this unusable anyway.)

    Remove rlogin/webv4 specific lookup method; no longer needed.

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From echicken@VERT to Git commit to main/sbbs/master on Thu Feb 23 23:18:38 2023
    https://gitlab.synchro.net/main/sbbs/-/commit/16132c434c516c468b2ec05c
    Modified Files:
    xtrn/wttr.in/locator.js
    Log Message:
    Comments for the future

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From echicken@VERT to Git commit to main/sbbs/master on Fri Feb 24 10:31:47 2023
    https://gitlab.synchro.net/main/sbbs/-/commit/c0980268604df92afa5df6bb
    Modified Files:
    xtrn/wttr.in/locator.js
    Log Message:
    Avoid ip info probably not pertaining to this client

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Debian Linux)@VERT to Git commit to main/sbbs/master on Sun Aug 16 22:55:13 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/07131d6e58343813ead2e885
    Modified Files:
    xtrn/wttr.in/locator.js
    Log Message:
    Read the WebSocket relay's sidecar file a line at a time

    websocketservice.js writes <temp_dir>/sbbs-ws-<port>.ip so a backend can recover the real client address from behind the relay, and that file now carries a second line -- the authenticated web user. xtrn/wttr.in's
    locator.js read it with File.read(), which reads to EOF, so it got both
    lines back joined by a CRLF and returned that as the client's address.
    It then goes out as part of an HTTP request line and as a cache key.

    readln() is the correct read here regardless: the value wanted is the
    first line, and it was only ever safe to slurp the file while the file
    happened to hold nothing else. It strips the trailing CR, so no CRLF
    survives into the address. A truncated read now returns early rather
    than throwing, since the relay's open('w') empties the file before
    writing it and a reader can land in that window.

    Correct the comment above the write, too. It said any existing backend
    still read exactly the first line; the address is indeed still the first
    line, but that is a statement about the file and not about its readers,
    and the reader in this tree was not one.

    Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net