Commit cf5d38aee809a0a3f030b530894c015dea298200
Don't follow self
cel committed on 8/10/2019, 10:57:22 PMParent: 608cf9969c43019689ed824f5302a49c825fc956
Files changed
index.js | changed |
index.js | ||
---|---|---|
@@ -6,8 +6,10 @@ | ||
6 | 6 … | exports.manifest = {} |
7 | 7 … | |
8 | 8 … | exports.init = (api, opts) => { |
9 | 9 … | api.on('rpc:connect', function (rpc, args) { |
10 … | + if (api.id === rpc.id) return | |
11 … | + | |
10 | 12 … | console.log("connection from: ", rpc.id) |
11 | 13 … | |
12 | 14 … | var our_id = api.whoami().id |
13 | 15 … | var connecting_id = rpc.id |
Built with git-ssb-web