From ba77fce453252f6ed0955ed986671f7488db24de Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Tue, 26 Oct 2021 06:38:11 +1030 Subject: [PATCH] websocket: switch to address type 6, since DNS will take 5. Signed-off-by: Rusty Russell --- common/wireaddr.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/wireaddr.h b/common/wireaddr.h index 383bcb519..d7d894d23 100644 --- a/common/wireaddr.h +++ b/common/wireaddr.h @@ -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 */