mirror of
https://github.com/aljazceru/lightning.git
synced 2026-02-23 15:04:19 +01:00
wireaddr: add ip[:port] parsing
* Add port parsing support to parse_wireaddr. This is in preparation for storing addresses in the peers table. This also makes parse_wireaddr a proper inverse of fmt_wireaddr. * Move parse_wireaddr to common/wireaddr.c this seems like a better place for it. I bring along parse_ip_port with it for convenience. This also fixes some issues with the upcoming ip/port parsing tests. Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
committed by
Rusty Russell
parent
90a5ba043c
commit
7ecccd50b9
@@ -8,6 +8,9 @@ WALLET_TEST_COMMON_OBJS := \
|
||||
common/memleak.o \
|
||||
common/pseudorand.o \
|
||||
common/utils.o \
|
||||
common/wireaddr.o \
|
||||
wire/towire.o \
|
||||
wire/fromwire.o \
|
||||
lightningd/htlc_end.o \
|
||||
lightningd/log.o
|
||||
|
||||
|
||||
Reference in New Issue
Block a user