mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-06 15:44:21 +01:00
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:
committed by
Christian Decker
parent
9d18180172
commit
b2c762969c
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user