From 1cbd62536d1c282233080c90f07f86a69cf78698 Mon Sep 17 00:00:00 2001
From: benjamin <ben@elixxir.io>
Date: Thu, 15 Dec 2022 14:45:48 -0800
Subject: [PATCH] fixed registration url replacement code

---
 registration/connect_js.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/registration/connect_js.go b/registration/connect_js.go
index 59ce5b373..8338fc3c6 100644
--- a/registration/connect_js.go
+++ b/registration/connect_js.go
@@ -9,7 +9,7 @@ const replaceWith = "registrar"
 // it is a simple pass through. For webassembly, it does not
 // return the cert
 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)
 
-- 
GitLab