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

[FIXED] Randomize IPs result from LookupHost before creating connection #417

Merged
merged 1 commit into from
Dec 15, 2018

Conversation

kozlovic
Copy link
Member

When a hostname is provided, before dialing we resolve the host
and get possibly several IPs. We randomize them before calling
net.Dial() so that we don't always connect to the same IP.

Signed-off-by: Ivan Kozlovic [email protected]

When a hostname is provided, before dialing we resolve the host
and get possibly several IPs. We randomize them before calling
net.Dial() so that we don't always connect to the same IP.

Signed-off-by: Ivan Kozlovic <[email protected]>
@coveralls
Copy link

Coverage Status

Coverage increased (+0.06%) to 93.064% when pulling 8534270 on randomize_lookup_host_result into aa1eeb0 on master.

Copy link
Member

@derekcollison derekcollison left a comment

Choose a reason for hiding this comment

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

Nice!

@derekcollison derekcollison merged commit 27716ff into master Dec 15, 2018
@kozlovic kozlovic deleted the randomize_lookup_host_result branch January 7, 2019 18:28
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