Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The IP address using XFF only works when passing through proxy #77

Open
Wnthr opened this issue Feb 10, 2023 · 1 comment
Open

The IP address using XFF only works when passing through proxy #77

Wnthr opened this issue Feb 10, 2023 · 1 comment

Comments

@Wnthr
Copy link

Wnthr commented Feb 10, 2023

The client (curl) does not pass the originating IP address, so when responding to requests based on IP it would be great to have access to whatever the IP address that ends up in the log is as a variable. The x_forwarded_for addition is excellent, but it's not helping when not going through a proxy, as far as I can tell?

Tested using curl 7.76.1

@ncarlier
Copy link
Owner

I'm not sure to understand. Webhookd use XFF like this: if a reverse proxy set the header, then webhookd forward the value. If no XFF header is set, webhookd set it using request IP.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants