diff options
author | irungentoo <irungentoo@gmail.com> | 2014-05-19 12:56:36 -0400 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2014-05-19 12:56:36 -0400 |
commit | e85feb8a3db42a0285b940a090c60102fae50374 (patch) | |
tree | 5f7106d655e8349a3118deb902518f77d1f70401 /docs/updates | |
parent | 8cec3cdd667975532747db13f7a4d5f279f94548 (diff) |
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.
Diffstat (limited to 'docs/updates')
-rw-r--r-- | docs/updates/DHT.md | 2 |
1 files changed, 1 insertions, 1 deletions
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: | |||
87 | 87 | ||
88 | Ping(Request and response): | 88 | Ping(Request and response): |
89 | ``` | 89 | ``` |
90 | [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)]] | 90 | [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)]] |
91 | ``` | 91 | ``` |
92 | ping_id = a random integer, the response must contain the exact same number as the request | 92 | ping_id = a random integer, the response must contain the exact same number as the request |
93 | 93 | ||