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 ExposesUnderlyingConns interface #1581

Conversation

johanbrandhorst
Copy link
Contributor

The interface can be used by DNS handlers to access the underlying TCP or UDP connection. This can be useful if more information is needed about the request, such as to what port it was made.

Fixes #1487

The interface can be used by DNS handlers to access the underlying TCP
or UDP connection. This can be useful if more information is needed
about the request, such as to what port it was made.

Fixes miekg#1487
@miekg
Copy link
Owner

miekg commented Aug 3, 2024

Not sure this warrants an expansion of the API, and i never needed it while writing coredns

@johanbrandhorst
Copy link
Contributor Author

Understood, I will close this and maintain my own fork.

@johanbrandhorst johanbrandhorst deleted the jbrandhorst-expose-underlying-conns branch August 7, 2024 18:04
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.

Optional interface for a ResponseWriter to expose Conns
2 participants