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

Does nacos 1.1.4 support ipv6? #2937

Closed
weiliang-ms opened this issue Jun 2, 2020 · 8 comments
Closed

Does nacos 1.1.4 support ipv6? #2937

weiliang-ms opened this issue Jun 2, 2020 · 8 comments
Labels
kind/question Category issues related to questions or problems

Comments

@weiliang-ms
Copy link

Issue Description

feature request

Describe what happened (or what feature you want)

nacos version: 1.1.4

I can access the nacos console through ipv6,but the curl test returns 400.

image

image

The nacos client does not recognize ipv6 addresses.

This is my configuration:

spring.cloud.nacos.server-addr=fe80::16cc:c977:f6f9:431e%ens33:8848

error log:

java.lang.IllegalStateException: failed to req API:/nacos/v1/ns/service/list after all servers([fe80::16cc:c977:f6f9:431e%ens33:8848]) tried: failed to req API:fe80::16cc:c977:f6f9:431e%ens33:8848/nacos/v1/ns/service/list. code:500 msg: java.net.MalformedURLException: For input string: ":16cc:c977:f6f9:431e%ens33:8848"

Describe what you expected to happen

Nacos supports ipv6 service registration discovery.

How to reproduce it (as minimally and precisely as possible)

Tell us your environment

CentOS7
nacos1.1.4
openjdk1.8

Anything else we need to know?

@KomachiSion
Copy link
Collaborator

currently, Only support ipv4.

@KomachiSion KomachiSion added the kind/question Category issues related to questions or problems label Jun 11, 2020
@weishuai8888
Copy link

我现在也在关注这个问题,但是我现在对概念有点混淆。您说的nacos控制台是不是指的第一张图的页面,但是nacos客户端指的是什么呢?

@weiliang-ms
Copy link
Author

weiliang-ms commented Jun 17, 2020 via email

@weishuai8888
Copy link

客户端我可以理解为注册到nacos中的服务吗?
目前我了解到的信息是使用PUT注册服务的时候,重新建立一个合法的ipv6地址,得到400的响应。
在GET时又能够获取到这个实例。这就代表注册服务时,不允许使用IPv6,但是发现服务时可以发现用ipv6注册的服务。不知道我获取到的信息是否正确。您这边目前得到的结论是什么?nacos支持ipv6对服务进行注册和发现吗?我的信息是在下面的问题中获取到的:#978

@weiliang-ms
Copy link
Author

weiliang-ms commented Jun 17, 2020 via email

@weishuai8888
Copy link

我这边也没有全链路的ipv6场景,也是想把Ipv4升级到ipv6,正在评估方案的可行性。您是直接把spring.cloud.nacos.server-addr的value值改成了ipv6了吗?您在哪里看到了官方给出的回复说不支持ipv6?

@weiliang-ms
Copy link
Author

weiliang-ms commented Jun 17, 2020 via email

@weishuai8888
Copy link

这个确定是否支持ipv6还要看官方文档上是否注明 您现在是不是配置ipv6后nacos控制台可以访问,但是配置的nacos服务不支持?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/question Category issues related to questions or problems
Projects
None yet
Development

No branches or pull requests

3 participants