• exec/load/dns.js

    From Rob Swindell (on Debian Linux)@VERT to Git commit to main/sbbs/master on Wednesday, January 01, 2025 20:00:24
    https://gitlab.synchro.net/main/sbbs/-/commit/2f81df9db9da187372b0c5d5
    Modified Files:
    exec/load/dns.js
    Log Message:
    Resolve some crashes/exceptions observed today when used by ircd.js

    ircd.js kept crashing on startup on vert with these errors, right after it logged:
    Accepting new connection on port 6667
    0832 Accepted new connection: 71.95.196.36 port 55646
    [UNREG] Resolving IP: 71.95.196.36

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuc¿@VERT to Git commit to main/sbbs/master on Friday, January 03, 2025 15:37:28
    https://gitlab.synchro.net/main/sbbs/-/commit/8a9d76c0fd6f64852d8425e1
    Modified Files:
    exec/load/dns.js
    Log Message:
    Don't return 0 when unable to parse integers.

    0 is a valid value, results are undefined.

    Validate the size of the message at each step and throw an error if
    something goes wrong.

    Should fix the issue where an IRC spammers DNS was detected as local,
    so the anti-spammer bot banned my server address intead of the
    spammers address.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuc¿@VERT to Git commit to main/sbbs/master on Friday, January 03, 2025 15:50:24
    https://gitlab.synchro.net/main/sbbs/-/commit/d7de4b88272824a7cb5c566b
    Modified Files:
    exec/load/dns.js
    Log Message:
    Socket.recv() can return null and undefined

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Windows 11)@VERT to Git commit to main/sbbs/master on Monday, July 27, 2026 02:09:08
    https://gitlab.synchro.net/main/sbbs/-/commit/cc61409c1c3c5fefb0bb388d
    Modified Files:
    exec/load/dns.js
    Log Message:
    dns.js: return the resolved addresses in synchronous mode

    resolve(), resolveIPv4() and resolveIPv6() called resolveProcess() without returning its value, so in synchronous mode they evaluated to undefined
    instead of the addresses, contradicting the usage example at the top of
    the file. resolveTypeClass(), reverse() and resolveMX() already return
    theirs.

    That example also used toSource(), which SpiderMonkey 128 does not have.

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

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