Open GVALFER opened 1 month ago
Describe the bug This simple plugin does not work at all
import fastifyIp from "fastify-ip"; app.register(fastifyIp); app.get("/ip", async (req, reply) => { return { ip: req.ip }; }); console log print {"ip":""}
Any suggestion?
Can you provide an Minimum Reproducible Example?
A quick guess its that the ip of your request might not be populated from the request itself, not from within the plugin.
ip
Describe the bug This simple plugin does not work at all
Any suggestion?