Commit 17fd4824c74af975058e6ff58183c3d8a13aadcd
don't show self in local peers after changing networks
Matt McKegg committed on 11/8/2016, 2:08:08 AMParent: ce375da17a50a713361509fbf70ff5ccf225d1f4
Files changed
lib/local-with-list.js | changed |
lib/local-with-list.js | |||
---|---|---|---|
@@ -39,9 +39,9 @@ | |||
39 | 39 … | local.on('data', function (buf) { | |
40 | 40 … | if (buf.loopback) return | |
41 | 41 … | var data = buf.toString() | |
42 | 42 … | var peer = ref.parseAddress(data) | |
43 | - if (peer) { | ||
43 … | + if (peer && peer.key !== sbot.id) { | ||
44 | 44 … | addrs[peer.key] = peer | |
45 | 45 … | lastSeen[peer.key] = Date.now() | |
46 | 46 … | sbot.gossip.add(data, 'local') | |
47 | 47 … | } |
Built with git-ssb-web