websocket: switch to address type 6, since DNS will take 5.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell 2021-10-26 06:38:11 +10:30 committed by Christian Decker
parent 091a6d9151
commit ba77fce453

View File

@ -38,7 +38,7 @@ struct sockaddr_un;
*/
/* BOLT-websockets #7:
* * `5`: WebSocket port; data = `[2:port]` (length 2)
* * `6`: WebSocket port; data = `[2:port]` (length 2)
*/
#define TOR_V2_ADDRLEN 10
@ -52,7 +52,7 @@ enum wire_addr_type {
ADDR_TYPE_IPV6 = 2,
ADDR_TYPE_TOR_V2 = 3,
ADDR_TYPE_TOR_V3 = 4,
ADDR_TYPE_WEBSOCKET = 5,
ADDR_TYPE_WEBSOCKET = 6,
};
/* Structure now fit for tor support */