+ if *clientEndpoint.HTTPPort > 0 {
+ xAppHTTPEndPoint = host + ":" + strconv.FormatInt(*clientEndpoint.HTTPPort, 10)
+ }
+ if *clientEndpoint.RMRPort > 0 {
+ if i := strings.Index(host, "http"); i != -1 {
+ host = strings.Replace(host, "http", "rmr", -1)
+ }
+ xAppRMREndPoint = host + ":" + strconv.FormatInt(*clientEndpoint.RMRPort, 10)
+ }
+