From e85feb8a3db42a0285b940a090c60102fae50374 Mon Sep 17 00:00:00 2001 From: irungentoo Date: Mon, 19 May 2014 12:56:36 -0400 Subject: Fixed a bug where someone could just send back the ping request packet with only the first byte set to 1 instead of 0 and the public key set to the one of the reciever as a valid response packet. This breaks network compatibility with all previous cores. --- docs/updates/DHT.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs') diff --git a/docs/updates/DHT.md b/docs/updates/DHT.md index ba6abe3a..17db70ce 100644 --- a/docs/updates/DHT.md +++ b/docs/updates/DHT.md @@ -87,7 +87,7 @@ Valid queries and Responses: Ping(Request and response): ``` -[byte with value: 00 for request, 01 for response][char array (client node_id), length=32 bytes][random 24 byte nonce][Encrypted with the nonce and private key of the sender: [random 8 byte (ping_id)]] +[byte with value: 00 for request, 01 for response][char array (client node_id), length=32 bytes][random 24 byte nonce][Encrypted with the nonce and private key of the sender: [1 byte type (0 for request, 1 for response)][random 8 byte (ping_id)]] ``` ping_id = a random integer, the response must contain the exact same number as the request -- cgit v1.2.3