cohenerickson / Velocity

Velocity is a fully featured tabbed proxy with a seamless browsing experience.
https://velocity.radon.games
GNU Affero General Public License v3.0
132 stars 301 forks source link

ipaddr.js throws error when attempting to load webpage. #25

Closed SevenworksDev closed 1 year ago

SevenworksDev commented 1 year ago

Using the commands on the README on Node.js v20.0.0 works but trying to fetch a webpage from Velocity returns an error in the ipaddr.js package. I don't know if its in error in Velocity or the ipaddr.js package but I'm gonna ask here first.

Error: throw new Error('ipaddr: the address has neither IPv6 nor IPv4 format');

Error: ipaddr: the address has neither IPv6 nor IPv4 format

cohenerickson commented 1 year ago

Nodejs 20 is not considered a stable version of node, try downgrading to the latest stable version (18.16.0) and see if the error persists.

cohenerickson commented 1 year ago

@SevenworksDev bump

SevenworksDev commented 1 year ago

Still doesn't work on Node 18/14.

cohenerickson commented 1 year ago

I'm unable to reproduce this error, can you provide some more system information and exact steps to reproduce it?

SevenworksDev commented 1 year ago

System I use is Windows 10 Pro (32-bit)

Knox248 commented 1 year ago

What’s the url for the proxy

SevenworksDev commented 1 year ago

What’s the url for the proxy

http://127.0.0.1:4200 :trollface:

fruvs commented 1 year ago

im getting the same error but im running it on localhost:3000

max@penguin:~/Velocity$ npm start

> velocity@1.3.0 start
> node scripts/server.js

Velocity listening on http://localhost:3000/
/home/max/Velocity/node_modules/ipaddr.js/lib/ipaddr.js:929
            throw new Error('ipaddr: the address has neither IPv6 nor IPv4 format');
            ^

Error: ipaddr: the address has neither IPv6 nor IPv4 format
    at ipaddr.parse (/home/max/Velocity/node_modules/ipaddr.js/lib/ipaddr.js:929:19)
    at GetAddrInfoReqWrap.callback (/home/max/Velocity/node_modules/@tomphttp/bare-server-node/dist/createServer.js:29:46)
    at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:131:8)

Node.js v20.1.0
cohenerickson commented 1 year ago

This is an issue with NodeJS v20