Commit 1f965cd163e7c8df4b61d8f58aafb4b1bf15861b
network: use full key (including host + port) to show duplicate pubs
Matt McKegg committed on 1/13/2017, 12:58:54 AMParent: 62404afd51be20fc4b7925c7ad3b91a4a4b34915
Files changed
modules_extra/network.js | changed |
modules_extra/network.js | ||
---|---|---|
@@ -220,13 +220,14 @@ | ||
220 | 220 … | |
221 | 221 … | function refresh () { |
222 | 222 … | api.sbot_gossip_peers((err, peers) => { |
223 | 223 … | peers.forEach(data => { |
224 | - var current = state.get(data.key) | |
224 … | + var id = legacyToMultiServer(data) | |
225 … | + var current = state.get(id) | |
225 | 226 … | if (!current) { |
226 | 227 … | current = Peer() |
227 | 228 … | current.set(data) |
228 | - state.put(data.key, current) | |
229 … | + state.put(id, current) | |
229 | 230 … | } else { |
230 | 231 … | current.set(data) |
231 | 232 … | } |
232 | 233 … | }) |
Built with git-ssb-web