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

Update gin to 1.7.7. #308

Merged
merged 1 commit into from
Nov 29, 2021
Merged

Update gin to 1.7.7. #308

merged 1 commit into from
Nov 29, 2021

Conversation

jholdstock
Copy link
Member

This pulls a fix which enables vspd to determine remote client IP using header X-Forwarded-For or X-Real-Ip.

This depends on the reverse proxy setting those headers appropriately, which can be achieved in nginx using the following:

proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

Closes #288

This pulls a fix which enables vspd to determine remote client IP using header `X-Forwarded-For` or `X-Real-Ip`.

This depends on the reverse proxy setting those headers appropriately, which can be achieved in nginx 1.20 using the following:

```
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
```
@dajohi dajohi merged commit 0919c6d into decred:master Nov 29, 2021
@jholdstock jholdstock deleted the gin1.7.7 branch January 25, 2022 09:19
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

Successfully merging this pull request may close these issues.

Bump gin-gonic version up to 1.7.2
2 participants