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

When ipType is IPv6 but there's no IPv6 found, find IPv4(Fixes gh-2802) #2810

Merged
merged 3 commits into from Sep 28, 2022

Conversation

pandaapo
Copy link
Contributor

Describe what this PR does / why we need it

When spring.cloud.nacos.discovery.ip-type is IPv6 but no IPv6 can be found out, SCA will automatically find IPv4. Thus a available service address is more likely to be provided.

Does this pull request fix one issue?

Fixes #2802

Describe how you did it

Describe how to verify it

Use a machine which doesn't support IPv6 to register. Or in application, set spring.cloud.inetutils.preferred-networks to exclude any IPv6.

Special notes for reviews

@steverao steverao merged commit f112981 into alibaba:2.2.x Sep 28, 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.

None yet

2 participants