p2p: fix comment typo (#18027)

This commit is contained in:
Liang Ma 2018-11-08 11:22:28 +00:00 committed by Felix Lange
parent 968f6019d0
commit c71e4fc4d5
1 changed files with 1 additions and 1 deletions

View File

@ -151,7 +151,7 @@ func readProtocolHandshake(rw MsgReader, our *protoHandshake) (*protoHandshake,
}
if msg.Code == discMsg {
// Disconnect before protocol handshake is valid according to the
// spec and we send it ourself if the posthanshake checks fail.
// spec and we send it ourself if the post-handshake checks fail.
// We can't return the reason directly, though, because it is echoed
// back otherwise. Wrap it in a string instead.
var reason [1]DiscReason