gaurishhs / elysia-ip

Get Client IP Address in Elysia
MIT License
53 stars 10 forks source link

Upstream: Issue with requestIP when using body validator #15

Open kwaitsing opened 7 months ago

kwaitsing commented 7 months ago

Issue page from upstream

gaurishhs commented 7 months ago

image

But it works for me as expected

kwaitsing commented 7 months ago

okay, i'll try to figure out the cause then

kwaitsing commented 7 months ago

Gave up, i think i should just let caddy or nginx handle this feature

gaurishhs commented 7 months ago

You are correct, This issue occurs when there is body validation but it doesn't if it's just a plain POST request.

gaurishhs commented 7 months ago

I have published a new release containing a check for Headers only mode which should utilize headers passed by the reverse proxy. (v1.0.3)

w5b commented 2 months ago

still experience this issues on latest version of elysia-ip, bun and elysia.

kwaitsing commented 2 months ago

still experience this issues on latest version of elysia-ip, bun and elysia.

Be creative

A workaround here is to use front proxy like caddy