diff --git a/common/wireaddr.c b/common/wireaddr.c index 97b19e81b..d54634226 100644 --- a/common/wireaddr.c +++ b/common/wireaddr.c @@ -394,6 +394,7 @@ bool parse_wireaddr_internal(const char *arg, struct wireaddr_internal *addr, /* An empty string means IPv4 and IPv6 (which under Linux by default * means just IPv6, and IPv4 gets autobound). */ + wildport = port; if (wildcard_ok && separate_address_and_port(tmpctx, arg, &ip, &wildport) && streq(ip, "")) {