Fix X-Forwarded-For header

This commit is contained in:
Hri7566 2024-02-01 12:38:03 -05:00
parent c9dccd0f38
commit 7d83cbd485
1 changed files with 1 additions and 1 deletions

View File

@ -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
}
})
) {