mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-03-15 11:59:16 +01:00
options: fix respect --disable-dns when parsing wireaddress
Changelog-Fixed: Options: Respect --always-use-proxy AND --disable-dns when parsing wireaddresses to listen on.
This commit is contained in:
parent
907a0e8855
commit
300303a8f2
1 changed files with 3 additions and 1 deletions
|
@ -188,12 +188,14 @@ static char *opt_add_addr_withtype(const char *arg,
|
|||
{
|
||||
char const *err_msg;
|
||||
struct wireaddr_internal wi;
|
||||
bool dns_ok;
|
||||
|
||||
assert(arg != NULL);
|
||||
dns_ok = !ld->always_use_proxy && ld->config.use_dns;
|
||||
|
||||
if (!parse_wireaddr_internal(arg, &wi,
|
||||
ld->portnum,
|
||||
wildcard_ok, !ld->always_use_proxy, false,
|
||||
wildcard_ok, dns_ok, false,
|
||||
deprecated_apis, &err_msg)) {
|
||||
return tal_fmt(NULL, "Unable to parse address '%s': %s", arg, err_msg);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue