Skip to content

Commit

Permalink
tentatively working with add server
Browse files Browse the repository at this point in the history
  • Loading branch information
Aptimex committed Aug 16, 2024
1 parent 659da33 commit 4e3bcea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cmd/add_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 4e3bcea

Please sign in to comment.