Fix X-Forwarded-For header
This commit is contained in:
parent
c9dccd0f38
commit
7d83cbd485
|
@ -41,7 +41,7 @@ export const app = Bun.serve<{ ip: string }>({
|
|||
if (
|
||||
server.upgrade(req, {
|
||||
data: {
|
||||
ip: req.headers.get("X-Forwarded-For") || reqip.address
|
||||
ip: req.headers.get("x-forwarded-for") || reqip.address
|
||||
}
|
||||
})
|
||||
) {
|
||||
|
|
Loading…
Reference in New Issue