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

fix: fix if host is listen on ip.IsUnspecified #15

Merged
merged 3 commits into from
Aug 13, 2024

Conversation

day253
Copy link
Contributor

@day253 day253 commented Jun 29, 2024

What type of PR is this?

fix: A bug fix

What this PR does / why we need it (English/Chinese):

When the host machine where the current instance is located does not support IPv6 addresses, the instance registration will use the IPv4 default address "0.0.0.0" for registration, resulting in the registered instance being "0.0.0.0" instead of the actual IP address.

// IsUnspecified reports whether ip is an unspecified address, either the IPv4 address "0.0.0.0" or the IPv6 address "::".

Which issue(s) this PR fixes:

ref: hertz-contrib/registry#112

@day253
Copy link
Contributor Author

day253 commented Aug 13, 2024

@horizonzy need approve

Copy link

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: day253, GuangmingLuo
To complete the pull request process, please ask for approval from horizonzy after the PR has been reviewed.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@GuangmingLuo GuangmingLuo merged commit bfdecef into kitex-contrib:main Aug 13, 2024
4 checks passed
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