We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug
无法指定服务注册ip信息
To Reproduce
Steps to reproduce the behavior:
Expected behavior
期望nacos注册的ip地址是127.0.0.1
Screenshots
github.com/cloudwego/kitex@v0.9.1/server/server.go:265 在Run方法调用了buildRegistryInfo方法对注册信息进行了修改,修改为当前服务运行的地址
func (s *server) buildRegistryInfo(lAddr net.Addr) { if s.opt.RegistryInfo == nil { s.opt.RegistryInfo = ®istry.Info{} } info := s.opt.RegistryInfo // notice: lAddr may be nil when listen failed info.Addr = lAddr if info.ServiceName == "" { info.ServiceName = s.opt.Svr.ServiceName } if info.PayloadCodec == "" { info.PayloadCodec = getDefaultSvcInfo(s.svcs).PayloadCodec.String() } if info.Weight == 0 { info.Weight = discovery.DefaultWeight } if info.Tags == nil { info.Tags = s.opt.Svr.Tags } }
运行时截图
Kitex version:
0.9.1
Environment:
windows
The text was updated successfully, but these errors were encountered:
这个是注册到nacos的地址
当我把服务运行的地址绑定到127.0.0.1的时候就可以正确注册127.0.0.1到nacos
Sorry, something went wrong.
这个问题在develop 分支修了,详见 #1329
我们可能会在本月发布一个新版本,急用的话可以先用 v0.9.3-rc2
担心稳定性的话,也可以参考 https://github.com/kitex-contrib/registry-etcd/pull/32/files 的做法,自己fork 个 registry-nacos 先应急
No branches or pull requests
Describe the bug
无法指定服务注册ip信息
To Reproduce
Steps to reproduce the behavior:
Expected behavior
期望nacos注册的ip地址是127.0.0.1
Screenshots
github.com/cloudwego/kitex@v0.9.1/server/server.go:265 在Run方法调用了buildRegistryInfo方法对注册信息进行了修改,修改为当前服务运行的地址
运行时截图
Kitex version:
0.9.1
Environment:
windows
The text was updated successfully, but these errors were encountered: