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

使用consul服务发现,拉取的服务地址有误 #60

Closed
stevenghost opened this issue Mar 31, 2020 · 4 comments
Closed

使用consul服务发现,拉取的服务地址有误 #60

stevenghost opened this issue Mar 31, 2020 · 4 comments

Comments

@stevenghost
Copy link

在consul_catalog.go中

hosts[i] = d.instanceFactory.General(instance.Node.Address, instance.Service.Port, 1)

应该是

hosts[i] = d.instanceFactory.General(instance.Service.Address, instance.Service.Port, 1)

这样才对把?

@zuozhiwen
Copy link

我测试发现也不行,确实返回了consul本身的IP,应该就是上面代码展示的Node的地址。这么严重的问题都没人修复吗?我们我们这边还在考虑企业版,看到这样的应付模式根本都不敢考虑了。

@smile-luobin
Copy link

提个PATCH改下吧

@forcemeter
Copy link

牛逼的功能都在企业版

@eolinker
Copy link
Collaborator

您好,感谢您的反馈,我们将记录问题并反馈给技术同事,若存在问题,争取尽快修复更新。

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

No branches or pull requests

4 participants