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
What version of TARS and what language are you using? TarsFramework-3.0.3
What operating system (Linux, Windows, ...) and version? [e.g. CentOS 7.8] Linux&Windows
What runtime/compiler are you using? [e.g. JDK version or version of gcc] docker
Describe the bug 在添加了服务配置和节点配置时(不启用set),PUSH配置文件给经过网关连接上来的节点(已设置nodeid,框架中显示的ip是实际ip)推送文件只会推送服务配置,不会合并节点配置的信息。具体原因是: 在getScriptFile函数中调用loadConfigByInfo时传入的配置参数是自己新建的对象,构建时只设置了部分信息,不包含host字段 后面取host时如果为空则取current->getHostName(),获取到的是连接的实际接入IP,也就是网关IP,而不是节点真实IP 在最后查库取节点配置时,用网关IP去查,无法获取真正的节点配置,导致推送的配置只有服务配置的内容,没有节点配置的内容。
getScriptFile函数中可以取到_desc.nodeName,这个能确保是实际的ip?用这个字段给host赋值传入是否可以?
To Reproduce
Expected behavior
Screenshots
Additional context
The text was updated successfully, but these errors were encountered:
目前是不支持节点通过网关接入
Sorry, something went wrong.
No branches or pull requests
What version of TARS and what language are you using?
TarsFramework-3.0.3
What operating system (Linux, Windows, ...) and version? [e.g. CentOS 7.8]
Linux&Windows
What runtime/compiler are you using? [e.g. JDK version or version of gcc]
docker
Describe the bug
在添加了服务配置和节点配置时(不启用set),PUSH配置文件给经过网关连接上来的节点(已设置nodeid,框架中显示的ip是实际ip)推送文件只会推送服务配置,不会合并节点配置的信息。具体原因是:
在getScriptFile函数中调用loadConfigByInfo时传入的配置参数是自己新建的对象,构建时只设置了部分信息,不包含host字段
后面取host时如果为空则取current->getHostName(),获取到的是连接的实际接入IP,也就是网关IP,而不是节点真实IP
在最后查库取节点配置时,用网关IP去查,无法获取真正的节点配置,导致推送的配置只有服务配置的内容,没有节点配置的内容。
getScriptFile函数中可以取到_desc.nodeName,这个能确保是实际的ip?用这个字段给host赋值传入是否可以?
To Reproduce
Expected behavior
Screenshots
Additional context
The text was updated successfully, but these errors were encountered: