From 062faf49cbd98fc7ef68f8387a18c5a0a131025e Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Wed, 10 Oct 2018 17:24:00 +0200 Subject: Fixes, and I think it works not too bad at the moment. --- shardweb/lib/shard_web/templates/page/index.html.eex | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'shardweb/lib/shard_web/templates') diff --git a/shardweb/lib/shard_web/templates/page/index.html.eex b/shardweb/lib/shard_web/templates/page/index.html.eex index 2efa030..efa651b 100644 --- a/shardweb/lib/shard_web/templates/page/index.html.eex +++ b/shardweb/lib/shard_web/templates/page/index.html.eex @@ -6,13 +6,12 @@ Address Port - <%= for {id, pid, ip, port} <- peer_list() do %> + <%= for {{:tcp4, ip, port}, pid, auth} <- conn_list() do %> - <%= if pid == nil do %> - <%= peer_id_to_str(id) %> - <% else %> - <%= peer_id_to_str(id) %> + <%= case auth do %> + <% nil -> %>(anonymous) + <% %SNet.Auth{his_pk: his_pk} -> %> <%= his_pk %> <% end %> <%= :inet_parse.ntoa(ip) %> -- cgit v1.2.3