Skip to content

Commit

Permalink
fix(p2p): fix connection by yourself in process
Browse files Browse the repository at this point in the history
  • Loading branch information
DEgITx committed Mar 12, 2018
1 parent 8a78c40 commit ce08b3b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/background/p2p.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,10 @@ class p2p {
if(!data || data.protocol != 'rats')
return

// can be added to ignore list while connecting
if(this.ignoreAddresses.includes(address.address))
return;

// success
clearTimeout(protocolTimeout)

Expand Down

0 comments on commit ce08b3b

Please sign in to comment.