ryaninvoker commented on a change in pull request #219:
URL: https://github.com/apache/servicecomb-kie/pull/219#discussion_r726689967



##########
File path: server/command/command.go
##########
@@ -49,12 +49,19 @@ func ParseConfig(args []string) (err error) {
                        Usage:       "kie use this ip port to join a kie 
cluster, example: --peer-addr=10.1.1.10:5000",
                        Destination: &config.Configurations.PeerAddr,
                        EnvVar:      "PEER_ADDR",
-               }, cli.StringFlag{
+               },
+               cli.StringFlag{
                        Name:        "listen-peer-addr",
                        Usage:       "listen on ip port, kie receive events 
example: --listen-peer-addr=10.1.1.10:5000",
                        Destination: &config.Configurations.ListenPeerAddr,
                        EnvVar:      "LISTEN_PEER_ADDR",
                },
+               cli.StringFlag{
+                       Name:        "advertise-addr",
+                       Usage:       "kie advertise addr, kie advertise addr 
example: --advertise-addr=10.1.1.10:5000",

Review comment:
       这个监听地址有2个地方使用,一个是agent的advertiseAddr 这个是ip+port 一个是serf的advertise 
这个是ip,用户输入ip+port agent取完整的ip+port serf只取ip




-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to