Unverified Commit 0fa39758 authored by vyzo's avatar vyzo Committed by GitHub

Merge pull request #470 from ipfs/fix/transient-conns

ignore transient connections
parents d1d4afa2 cf23160d
This diff is collapsed.
......@@ -422,9 +422,19 @@ func (nn *netNotifiee) impl() *impl {
}
func (nn *netNotifiee) Connected(n network.Network, v network.Conn) {
// ignore transient connections
if v.Stat().Transient {
return
}
nn.impl().connectEvtMgr.Connected(v.RemotePeer())
}
func (nn *netNotifiee) Disconnected(n network.Network, v network.Conn) {
// ignore transient connections
if v.Stat().Transient {
return
}
nn.impl().connectEvtMgr.Disconnected(v.RemotePeer())
}
func (nn *netNotifiee) OpenedStream(n network.Network, s network.Stream) {}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment