You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by GitBox <gi...@apache.org> on 2021/10/11 09:32:01 UTC
[GitHub] [servicecomb-kie] tianxiaoliang commented on a change in pull request #219: 修复Linux 本地版Kie在部分机器上报找不到private ip的错误
tianxiaoliang commented on a change in pull request #219:
URL: https://github.com/apache/servicecomb-kie/pull/219#discussion_r725949984
##########
File path: server/pubsub/bus.go
##########
@@ -55,13 +56,16 @@ type Bus struct {
func Init() {
once.Do(func() {
ac := agent.DefaultConfig()
+ sc := serf.DefaultConfig()
+ setSerfAdvertiseAddr(sc, ac.BindAddr)
if config.Configurations.ListenPeerAddr != "" {
ac.BindAddr = config.Configurations.ListenPeerAddr
}
if config.Configurations.AdvertiseAddr != "" {
ac.AdvertiseAddr = config.Configurations.AdvertiseAddr
+ serfAdvertiseAddr := strings.Split(config.Configurations.AdvertiseAddr, ":")
Review comment:
为何split?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@servicecomb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org