fix(p2p): fix connection by yourself in process
This commit is contained in:
parent
54c9fb10b7
commit
223fe8c1ab
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user