git ssb

10+

Matt McKegg / patchwork



Commit 17fd4824c74af975058e6ff58183c3d8a13aadcd

don't show self in local peers after changing networks

Matt McKegg committed on 11/8/2016, 2:08:08 AM
Parent: ce375da17a50a713361509fbf70ff5ccf225d1f4

Files changed

lib/local-with-list.jschanged
lib/local-with-list.jsView
@@ -39,9 +39,9 @@
3939 local.on('data', function (buf) {
4040 if (buf.loopback) return
4141 var data = buf.toString()
4242 var peer = ref.parseAddress(data)
43- if (peer) {
43 + if (peer && peer.key !== sbot.id) {
4444 addrs[peer.key] = peer
4545 lastSeen[peer.key] = Date.now()
4646 sbot.gossip.add(data, 'local')
4747 }

Built with git-ssb-web