From 4e3bceaffa17700a208bf85658d6797f826fc7cf Mon Sep 17 00:00:00 2001 From: Aptimex Date: Thu, 15 Aug 2024 18:20:27 -0600 Subject: [PATCH] tentatively working with add server --- src/cmd/add_server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmd/add_server.go b/src/cmd/add_server.go index 599c753..82c0db5 100644 --- a/src/cmd/add_server.go +++ b/src/cmd/add_server.go @@ -170,7 +170,6 @@ func (c addServerCmdConfig) Run() { PublicKey: serverConfigE2EE.GetPublicKey(), AllowedIPs: c.allowedIPs, Endpoint: net.JoinHostPort(newRelayPrefixes[0].Addr().Next().Next().String(), fmt.Sprint(E2EEPort)), - Nickname: c.nickname, }) check("failed to generate new e2ee peer", err) clientConfigE2EE.AddPeer(serverE2EEPeer) @@ -264,6 +263,7 @@ func (c addServerCmdConfig) Run() { PublicKey: serverConfigE2EE.GetPublicKey(), AllowedIPs: c.allowedIPs, Endpoint: net.JoinHostPort(addresses.NextServerRelayAddr4.String(), fmt.Sprint(E2EEPort)), + Nickname: c.nickname, }) check("failed to parse server as peer", err) clientConfigE2EE.AddPeer(serverPeerConfigE2EE)