Skip to content
Snippets Groups Projects
Commit 1cbd6253 authored by benjamin's avatar benjamin
Browse files

fixed registration url replacement code

parent dec45f49
No related branches found
No related tags found
1 merge request!510Release
...@@ -9,7 +9,7 @@ const replaceWith = "registrar" ...@@ -9,7 +9,7 @@ const replaceWith = "registrar"
// it is a simple pass through. For webassembly, it does not // it is a simple pass through. For webassembly, it does not
// return the cert // return the cert
func getConnectionInfo(regAddr, certificate string) (addr string, cert []byte, err error) { func getConnectionInfo(regAddr, certificate string) (addr string, cert []byte, err error) {
addr = strings.Replace(regAddr, toReplace, replaceWith, 0) addr = strings.Replace(regAddr, toReplace, replaceWith, 1)
cert = []byte(certificate) cert = []byte(certificate)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment