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

still docker network ip returns #1

Open
sadeghhp opened this issue Jan 27, 2019 · 1 comment
Open

still docker network ip returns #1

sadeghhp opened this issue Jan 27, 2019 · 1 comment

Comments

@sadeghhp
Copy link

based on doc sample , when i get RemoteIpAddress or "X-Real-Ip" in headers, i have still get docker network allocated IP !

image

@waldo2188
Copy link
Member

Hi!

can you try this configuration ?

app.UseGSTForwardedHeaders(new GST.Library.Middleware.HttpOverrides.Builder.ForwardedHeadersOptions
            {
                ForwardedHeaders = ForwardedHeaders.XForwardedFor | ForwardedHeaders.XForwardedProto | ForwardedHeaders.XRealIp,
                ForceXForxardedOrRealIp = true,
            });

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