Closed blitss closed 4 years ago
Hi @Blitss
Thanks for PR and thanks for using nanoexpress.
But there one moment. HttpRequest.getIP
is not stable method and it's not recommended for Production usage.
Sorry, because this is undocumented well
Ok, thanks. I guess it only works with IPv4 addresses?
It'd be great if you added a support for both IPv6 and trust proxy
, such as Nginx.
I hope it will, but i cannot add this until uWebSockets.js add this. This method very slow and unstable, i decided not add to API, but still works sometimes as experimental
It appears that we have
getIP
method which doesn't exist in TS typings. https://github.com/dalisoft/nanoexpress/blob/master/src/wrappers/http/request.js#L21