pbojinov / request-ip

A Node.js module for retrieving a request's IP address on the server.
https://npmjs.com/package/request-ip
MIT License
830 stars 102 forks source link

Fixed for Fastify req.connection deprecation #79

Open ephraimd opened 1 year ago

ephraimd commented 1 year ago

In Fastify, req.connection has been Deprecated in favor of req.socket. This affects all recent Fastify installs. The fix made so that nothing breaks but Fastify can pick its preferred req.socket option first without throwing any warnings at the developer.

sheiman-pavlo commented 1 year ago

@pbojinov can we expect this PR merged anytime soon?

System233 commented 1 year ago

Fixes #86 @pbojinov