tomphttp / bare-server-node

TompHTTP Bare server in the Node runtime
GNU General Public License v3.0
72 stars 122 forks source link

Issue with ipaddr #20

Closed VillainsRule closed 1 year ago

VillainsRule commented 1 year ago

The "ipaddr.js" dependency can crash the app.

The issue is, sometimes "string" is actually an array of objects.

Screen Shot 2023-05-22 at 5 50 51 PM

I've currently fixed it by adding the following line to the module:

        if (typeof string === 'object') string = string[0].address;

However, I'm looking for a more permanent solution.

Screen Shot 2023-05-22 at 5 53 35 PM

Not sure if this is an installation error. I'm using the latest version of this, and am using this package as it is required for Ultraviolet deployment.

e9x commented 1 year ago

fixed in 354e314521c56968b7d1ae8dcbd2454bc9912122