Multiple gateways

This commit is contained in:
skiffer-git
2022-08-11 11:44:14 +08:00
parent 079fe089de
commit eb7e6a566b
+1 -2
View File
@@ -38,8 +38,7 @@ func RegisterEtcd4Unique(schema, etcdAddr, myHost string, myPort int, serviceNam
}
func GetTarget(schema, myHost string, myPort int, serviceName string) string {
serviceName = serviceName + ":" + net.JoinHostPort(myHost, strconv.Itoa(myPort))
return serviceName
return GetPrefix(schema, serviceName) + ":" + net.JoinHostPort(myHost, strconv.Itoa(myPort)) + "/"
}
//etcdAddr separated by commas