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

Add 'no_forwarder' Option to Public Frontend #610

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

michaelquigley
Copy link
Collaborator

@michaelquigley michaelquigley commented Apr 30, 2024

Useful for skipping addresses of intermediate infrastructure (#609 )

@michaelquigley michaelquigley self-assigned this Apr 30, 2024
Copy link

vercel bot commented Apr 30, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
zrok ⬜️ Ignored (Inspect) Visit Preview May 13, 2024 3:52pm

@michaelquigley michaelquigley added the feature New feature description label Apr 30, 2024
@michaelquigley michaelquigley added this to the v0.4 milestone Apr 30, 2024
@michaelquigley michaelquigley requested a review from a team April 30, 2024 18:41
@@ -106,6 +106,9 @@ func newServiceProxy(cfg *Config, ctx ziti.Context) (*httputil.ReverseProxy, err
director := proxy.Director
proxy.Director = func(req *http.Request) {
director(req)
if cfg.NoForwarder {
req.Header["X-Forwarded-For"] = nil
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a pretty well-known header, but it appears twice in zrok. It'd be nice to use a const imo

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

Successfully merging this pull request may close these issues.

None yet

2 participants