wireaddr: clean up tor parsing.

blob[] is really a string from the commandline; leave it as a char.

And parsing is much simpler than this code makes it seem!

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2021-11-10 10:57:42 +10:30
committed by Christian Decker
parent 9d18180172
commit b2c762969c
7 changed files with 34 additions and 46 deletions

View File

@@ -134,8 +134,8 @@ struct wireaddr_internal {
struct wireaddr address;
/* Tor port to use */
u16 port;
/* Blob to use to create tor service */
u8 blob[TOR_V3_BLOBLEN + 1];
/* Nul-terminated blob to use to create tor service */
char blob[TOR_V3_BLOBLEN + 1];
} torservice;
/* ADDR_INTERNAL_FORPROXY */
struct unresolved {