Browse Source

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>
ppa-0.6.1
Rusty Russell 7 years ago
parent
commit
7900318216
  1. 6
      common/wireaddr.h

6
common/wireaddr.h

@ -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,

Loading…
Cancel
Save