mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-22 00:24:19 +01:00
options: set DNS port to network default if not specified
- set port for a DNS announcement without port to network default - remove x-fail Changelog-Fixed: Port of a DNS announcement can be 0 if unspecified
This commit is contained in:
@@ -272,7 +272,10 @@ static char *opt_add_addr_withtype(const char *arg,
|
||||
wi.u.wireaddr.addrlen = strlen(address);
|
||||
strncpy((char * restrict)&wi.u.wireaddr.addr,
|
||||
address, sizeof(wi.u.wireaddr.addr) - 1);
|
||||
wi.u.wireaddr.port = port;
|
||||
if (port == 0)
|
||||
wi.u.wireaddr.port = ld->portnum;
|
||||
else
|
||||
wi.u.wireaddr.port = port;
|
||||
|
||||
tal_arr_expand(&ld->proposed_listen_announce, ADDR_ANNOUNCE);
|
||||
tal_arr_expand(&ld->proposed_wireaddr, wi);
|
||||
|
||||
Reference in New Issue
Block a user