mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 18:11:28 +01:00
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:
parent
7d95dbbd0a
commit
7900318216
@ -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…
Reference in New Issue
Block a user