ryu
ryu
HHono
Created by andystevenson on 8/5/2024 in #help
conninfo doesn't check for x-forwarded-for?
You can write this:
app.use(
ipRestriction((c) => c.req.header('x-forwarded-for') || "", {
denyList: [],
allowList: ['127.0.0.1', '::1'],
})
)
app.use(
ipRestriction((c) => c.req.header('x-forwarded-for') || "", {
denyList: [],
allowList: ['127.0.0.1', '::1'],
})
)
3 replies