Skip to content

Commit

Permalink
tweak: accept publish/confirmACK from "unknown" peers.
Browse files Browse the repository at this point in the history
  • Loading branch information
inkeliz committed Sep 19, 2018
1 parent 7394cca commit 08c994d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Node/nano.go
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,10 @@ func (srv *Server) listenUDP() {
}
} else {
switch h.MessageType {
case Packets.Publish:
srv.PublishHandler(srv, dest, h, b)
case Packets.ConfirmACK:
srv.ConfirmACKHandler(srv, dest, h, b)
case Packets.NodeHandshake:
srv.HandshakeHandler(srv, dest, h, b)
}
Expand Down

0 comments on commit 08c994d

Please sign in to comment.