From 3457acc48b52073be0f036a59da8918eafc6cfa1 Mon Sep 17 00:00:00 2001 From: Ettore Di Giacinto Date: Fri, 16 Aug 2024 19:34:36 +0200 Subject: [PATCH] chore(explorer): add join instructions (#3255) * feat(explorer): give CLI instructions to join federated clusters Signed-off-by: Ettore Di Giacinto * debug message Signed-off-by: Ettore Di Giacinto --------- Signed-off-by: Ettore Di Giacinto --- core/http/views/explorer.html | 23 ++++++++++++++++++++--- core/p2p/federated_server.go | 1 + 2 files changed, 21 insertions(+), 3 deletions(-) diff --git a/core/http/views/explorer.html b/core/http/views/explorer.html index 033fa546..1db3dc9b 100644 --- a/core/http/views/explorer.html +++ b/core/http/views/explorer.html @@ -9,6 +9,9 @@ color: #e2e8f0; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; } + .token { + word-break: break-all; + } .container { max-width: 800px; margin: 0 auto; @@ -275,14 +278,28 @@

Available Clusters in this network

@@ -361,8 +378,8 @@ copyToken(token) { navigator.clipboard.writeText(token) .then(() => { - console.log('Token copied to clipboard:', token); - alert('Token copied to clipboard!'); + console.log('Text copied to clipboard:', token); + alert('Text copied to clipboard!'); }) .catch(err => { console.error('Failed to copy token:', err); diff --git a/core/p2p/federated_server.go b/core/p2p/federated_server.go index 6d7ccd46..18080b2f 100644 --- a/core/p2p/federated_server.go +++ b/core/p2p/federated_server.go @@ -98,6 +98,7 @@ func (fs *FederatedServer) proxy(ctx context.Context, node *node.Node) error { tunnelAddr = fs.SelectLeastUsedServer() if tunnelAddr == "" { + log.Debug().Msgf("Least used server not found, selecting random") tunnelAddr = fs.RandomServer() }