git ssb

16+

Dominic / patchbay



Commit 1f965cd163e7c8df4b61d8f58aafb4b1bf15861b

network: use full key (including host + port) to show duplicate pubs

Matt McKegg committed on 1/13/2017, 12:58:54 AM
Parent: 62404afd51be20fc4b7925c7ad3b91a4a4b34915

Files changed

modules_extra/network.jschanged
modules_extra/network.jsView
@@ -220,13 +220,14 @@
220220
221221 function refresh () {
222222 api.sbot_gossip_peers((err, peers) => {
223223 peers.forEach(data => {
224- var current = state.get(data.key)
224 + var id = legacyToMultiServer(data)
225 + var current = state.get(id)
225226 if (!current) {
226227 current = Peer()
227228 current.set(data)
228- state.put(data.key, current)
229 + state.put(id, current)
229230 } else {
230231 current.set(data)
231232 }
232233 })

Built with git-ssb-web