Skip to content

Commit 23de6f3

Browse files
rustyrussellremyers
authored andcommitted
lightningd: remove announce-addr-dns flag.
Signed-off-by: Rusty Russell <[email protected]> Changelog-Removed: Config: `announce-addr-dns` (deprecated v23.08, disabled in v24.11).
1 parent 73fa7cd commit 23de6f3

File tree

4 files changed

+0
-22
lines changed

4 files changed

+0
-22
lines changed

doc/developers-guide/deprecations.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ hidden: false
77

88
| Name | Type | First Deprecated | Last Supported | Description |
99
|--------------------------------------|--------------------|------------------|----------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
10-
| announce-addr-dns | Config | v23.08 | v24.08 | Use `bind-addr=dns:` to specify DNS announcements on a per-address basis |
1110
| rest-port.clnrest-prefix | Config | v23.11 | v24.11 | Autodetect where we need to rename `rest-port` to `clnrest-port` (added in v23.11) |
1211
| rest-protocol.clnrest-prefix | Config | v23.11 | v24.11 | Autodetect where we need to rename `rest-protocol` to `clnrest-protocol` (added in v23.11) |
1312
| rest-host.clnrest-prefix | Config | v23.11 | v24.11 | Autodetect where we need to rename `rest-host` to `clnrest-host` (added in v23.11) |

lightningd/lightningd.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -245,10 +245,6 @@ static struct lightningd *new_lightningd(const tal_t *ctx)
245245
ld->proposed_wireaddr = tal_arr(ld, struct wireaddr_internal, 0);
246246
ld->proposed_listen_announce = tal_arr(ld, enum addr_listen_announce, 0);
247247

248-
/*~ The network is not yet ready for DNS names inside node_announcements,
249-
* so we disable this by default for now. */
250-
ld->announce_dns = false;
251-
252248
ld->lease_rates = NULL;
253249
ld->node_announcement = NULL;
254250
ld->discovered_ip_v4 = NULL;

lightningd/lightningd.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -274,9 +274,6 @@ struct lightningd {
274274
/* If they force db upgrade on or off this is set. */
275275
bool *db_upgrade_ok;
276276

277-
/* Announce names in config as DNS records (recently BOLT 7 addition) */
278-
bool announce_dns;
279-
280277
/* Indexes used by all the wait infra */
281278
struct indexes indexes[NUM_WAIT_SUBSYSTEM];
282279

lightningd/options.c

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -231,20 +231,10 @@ static char *opt_add_addr_withtype(const char *arg,
231231
char const *err_msg;
232232
struct wireaddr_internal wi;
233233
bool dns_lookup_ok;
234-
char *address;
235-
u16 port;
236234

237235
assert(arg != NULL);
238236
dns_lookup_ok = !ld->always_use_proxy && ld->config.use_dns;
239237

240-
/* Deprecated announce-addr-dns: autodetect DNS addresses. */
241-
if (ld->announce_dns && (ala == ADDR_ANNOUNCE)
242-
&& separate_address_and_port(tmpctx, arg, &address, &port)
243-
&& is_dnsaddr(address)) {
244-
log_unusual(ld->log, "Adding dns prefix to %s!", arg);
245-
arg = tal_fmt(tmpctx, "dns:%s", arg);
246-
}
247-
248238
err_msg = parse_wireaddr_internal(tmpctx, arg, ld->portnum,
249239
dns_lookup_ok, &wi);
250240
if (err_msg)
@@ -1489,10 +1479,6 @@ static void register_opts(struct lightningd *ld)
14891479
opt_register_early_noarg("--experimental-anchors",
14901480
opt_set_anchor_zero_fee_htlc_tx, ld,
14911481
opt_hidden);
1492-
clnopt_witharg("--announce-addr-dns", OPT_EARLY|OPT_SHOWBOOL,
1493-
opt_set_bool_arg, opt_show_bool,
1494-
&ld->announce_dns,
1495-
opt_hidden);
14961482

14971483
clnopt_noarg("--help|-h", OPT_EXITS,
14981484
opt_lightningd_usage, ld, "Print this message.");

0 commit comments

Comments
 (0)