mirror of
https://github.com/PeernetOfficial/core.git
synced 2026-07-22 04:37:50 +01:00
Initial filters for new peers and new connections. More filters to be added. #4
This commit is contained in:
@@ -175,6 +175,10 @@ func (peer *PeerInfo) registerConnection(incoming *Connection) (result *Connecti
|
||||
peer.connectionActive = append(peer.connectionActive, incoming)
|
||||
peer.setConnectionLatest(incoming)
|
||||
|
||||
if Filters.NewPeerConnection != nil {
|
||||
Filters.NewPeerConnection(peer, incoming)
|
||||
}
|
||||
|
||||
return incoming
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user