wireaddr: fix tor address lengths.

This variable does NOT include the 2 bytes for the port.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell 2018-05-10 08:48:24 +09:30
parent 7d95dbbd0a
commit 7900318216

View File

@ -31,9 +31,9 @@ struct sockaddr_un;
* where `checksum = sha3(".onion checksum" | pubkey || version)[:2]`
*/
#define TOR_V2_ADDRLEN 12
#define TOR_V3_ADDRLEN 37
#define LARGEST_ADDRLEN 37
#define TOR_V2_ADDRLEN 10
#define TOR_V3_ADDRLEN 35
#define LARGEST_ADDRLEN TOR_V3_ADDRLEN
enum wire_addr_type {
ADDR_TYPE_PADDING = 0,