From d2bd4deb82b8d7f279b3f3bd17b10dcda7419eda Mon Sep 17 00:00:00 2001 From: ycc Date: Wed, 5 Jun 2024 22:40:38 +0200 Subject: [PATCH] fix server creatiuon with userkp --- client/server.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client/server.go b/client/server.go index ec2e176..cfb081d 100644 --- a/client/server.go +++ b/client/server.go @@ -40,6 +40,7 @@ func CreateServerFromUrl(url string) *Server { var is Server is.Name = url is.Url = url + is.UserKp = meowlib.NewKeyPair() return &is } @@ -48,6 +49,7 @@ func CreateServerFromUid(uid string) *Server { var is Server uidTable := strings.Split(uid, "@") //! Weak test, use regexp is.Name = uid + is.UserKp = meowlib.NewKeyPair() if len(uidTable) == 2 { loginpw := strings.Split(uidTable[0], ":") is.Url = uidTable[1]