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

DialHost must connect to the requested host #1683

Merged
merged 2 commits into from
Apr 25, 2023

Conversation

laurovenancio
Copy link
Contributor

@laurovenancio laurovenancio commented Mar 24, 2023

When a hostname resolves to multiple hosts, multiple HostInfos are generated. DialHost must connect to the host received as parameter. If the hostname is used to establish the connection, the dns could resolve to another host.
The hostname should still be used to verify the TLS connection.

@laurovenancio laurovenancio changed the title HostDial must connect to the requested host DialHost must connect to the requested host Mar 24, 2023
@laurovenancio laurovenancio force-pushed the fix-host-dial branch 2 times, most recently from b85edda to 5f78076 Compare March 24, 2023 20:41
@martin-sucha
Copy link
Contributor

Hi, thank you for the pull request! The change looks good to me.

Please also update AUTHORS.md as per CONTRIBUTING.md and we can merge this.

When a hostname resolves to multiple hosts, multiple HostInfos are
generated. DialHost must connect to the host received as parameter.
If the hostname is used to establish the connection, the dns could
resolve to another host.
The hostname should still be used to verify the TLS connection.
@laurovenancio
Copy link
Contributor Author

Please also update AUTHORS.md as per CONTRIBUTING.md and we can merge this.

@martin-sucha Rebased and authors updated.

@sseidman
Copy link
Contributor

had a similar fix here #1670 to avoid IP address conflicts. Not sure if it's still necessary or not with this change

@martin-sucha martin-sucha merged commit 4aa6119 into apache:master Apr 25, 2023
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