• exec/load/dns.js

    From Rob Swindell (on Debian Linux)@1:103/705 to Git commit to main/sbbs/master on Sat Feb 25 15:01:54 2023
    https://gitlab.synchro.net/main/sbbs/-/commit/2e9f58be866886dbe6d8ad10
    Modified Files:
    exec/load/dns.js
    Log Message:
    Throw a more helpful exception when no nameservers specified/availableMy /etc/resolv.conf was wiped by Network Manager (gee, thanks), soircd.js was throwing the following unhelpful exceptions when startingup:Feb 25 13:47:51 git jsexec[19108]: !JavaScript : uncaught exception: Unable to create any socketsFeb 25 13:47:51 git jsexec[19108]: !JavaScript : uncaught exception: Unable to create any socketsFirst, instead of throwing a string, throw an Error object so we canactually know where the exception ocurred. Please, everyone, throw Errorsnot Strings.Second, throw a different more helpful exception if there are no nameserversspecified in the DNS constructor or configured on the system.
    --- 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 Wed Jan 1 20:00:24 2025
    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
    --- SBBSecho 3.23-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Deucе@1:103/705 to Git commit to main/sbbs/master on Fri Jan 3 15:37:28 2025
    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.
    --- SBBSecho 3.23-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Deucе@1:103/705 to Git commit to main/sbbs/master on Fri Jan 3 15:50:24 2025
    https://gitlab.synchro.net/main/sbbs/-/commit/d7de4b88272824a7cb5c566b
    Modified Files:
    exec/load/dns.js
    Log Message:
    Socket.recv() can return null and undefined
    --- SBBSecho 3.23-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)