Skip to content
This repository has been archived by the owner on Jun 23, 2022. It is now read-only.

fix: weak constraint of ipv4 and incorrect code logic in hostname_from_ip #406

Merged
merged 41 commits into from
Feb 28, 2020

Conversation

Smityz
Copy link
Contributor

@Smityz Smityz commented Feb 25, 2020

Ref #405

@Smityz Smityz changed the title Fixbug fix: weak constraint of ipv4 and incorrect code logic in hostname_from_ip Feb 25, 2020
include/dsn/tool-api/rpc_address.h Outdated Show resolved Hide resolved
src/core/tests/hostname_test.cpp Show resolved Hide resolved
唐彦昭 added 3 commits February 25, 2020 14:28
唐彦昭 added 2 commits February 25, 2020 15:18
唐彦昭 added 3 commits February 25, 2020 16:48
Copy link
Member

@vagetablechicken vagetablechicken left a comment

Choose a reason for hiding this comment

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

👍

唐彦昭 added 3 commits February 27, 2020 15:42
唐彦昭 added 2 commits February 27, 2020 17:49
include/dsn/tool-api/rpc_address.h Outdated Show resolved Hide resolved
src/core/tests/hostname_test.cpp Outdated Show resolved Hide resolved
src/core/tests/hostname_test.cpp Outdated Show resolved Hide resolved
@neverchanje
Copy link
Contributor

The better way to construct ipv4 address is using boost::ip::address_v4::make_address_v4. I don't think we should write on our own. But certainly, this PR is good for now.

唐彦昭 added 2 commits February 28, 2020 13:23
Copy link
Member

@vagetablechicken vagetablechicken left a comment

Choose a reason for hiding this comment

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

👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants