Skip to content

Conversation

brianshea2
Copy link
Contributor

Adds Net() string to ResponseWriter which returns the corresponding Server's Net value (e.g., "tcp", "tcp-tls").

This makes it easy, for example, to gate logic in a Handler based on the transport protocol, such as adding EDNS0 Padding to responses when using TLS.

Cheers!

@brianshea2 brianshea2 requested review from miekg and tmthrgd as code owners May 29, 2025 23:47
@miekg miekg merged commit 96a6b9c into miekg:master May 31, 2025
5 checks passed
@miekg
Copy link
Owner

miekg commented Aug 3, 2025

reverting because not backwards compatible (although that creates another bump for users that did uprade)

miekg added a commit that referenced this pull request Aug 3, 2025
This reverts commit 96a6b9c.

(not backwards compatible)
miekg added a commit that referenced this pull request Aug 3, 2025
This reverts commit 96a6b9c.

(not backwards compatible)
@ldemailly
Copy link
Contributor

curious how is it not bw compatible to add a method?
(just saw dependabot bump, no skin in the game, just curious)

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.

3 participants