mirror of
https://github.com/PeernetOfficial/core.git
synced 2026-07-17 02:47:51 +01:00
Add filters for low-level packet and high-level message interception for debugging purposes. Close #4
This commit is contained in:
@@ -198,7 +198,11 @@ func (peer *PeerInfo) cmdPing(msg *MessageRaw) {
|
||||
return
|
||||
}
|
||||
|
||||
peer.send(&PacketRaw{Command: CommandPong, Sequence: msg.Sequence})
|
||||
raw := &PacketRaw{Command: CommandPong, Sequence: msg.Sequence}
|
||||
|
||||
Filters.MessageOutPong(peer, raw)
|
||||
|
||||
peer.send(raw)
|
||||
}
|
||||
|
||||
// cmdPong handles an incoming pong message
|
||||
|
||||
Reference in New Issue
Block a user