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 host-header to protocol.csv #144

Closed
wants to merge 1 commit into from
Closed

Add host-header to protocol.csv #144

wants to merge 1 commit into from

Conversation

thibmeu
Copy link

@thibmeu thibmeu commented Oct 13, 2022

Host header is required for HTTP based protocol (HTTP, HTTPS, WS, WSS) when DNS(, 4, 6, addr) has been resolved to an IP address and TCP port.

This is required to preserve the host header while resolving a DNS address. The tuple ip:port alone is not sufficient to contact a host via HTTP.

For instance, this is going to be used to address libp2p/go-libp2p#1829

cc @MarcoPolo

@MarcoPolo
Copy link
Contributor

Some discussion around the number and the name here: multiformats/go-multiaddr#185 (comment)

Host header is required for HTTP based protocol (HTTP, HTTPS, WS, WSS)
when DNS(, 4, 6, addr) has been resolved to an IP address and TCP port.
@thibmeu
Copy link
Author

thibmeu commented Oct 14, 2022

changed code from 476 to 481

@MarcoPolo
Copy link
Contributor

Unless we get any other feedback, and we want to keep this approach, then I think we can merge this on Monday. Thanks again

@MarcoPolo
Copy link
Contributor

Closing this for now, since we ended up just using SNI for this as well. This may come up again in the future though.

@MarcoPolo MarcoPolo closed this Nov 12, 2022
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.

2 participants