opts: deprecate --disable-ip-discovery switch

This switch was not doing anything useful anymore.
We deprecate it anyways to notify the user about the new switch.

Changelog-Deprecated: The old --disable-ip-discovery config switch
This commit is contained in:
Michael Schmoock
2022-12-20 18:28:46 +01:00
parent a2b94f16f8
commit 30dea0a431
6 changed files with 14 additions and 21 deletions

View File

@@ -1308,7 +1308,8 @@ static void update_remote_addr(struct lightningd *ld,
u16 public_port;
/* failsafe to prevent privacy leakage. */
if (ld->always_use_proxy || ld->config.disable_ip_discovery)
if (ld->always_use_proxy ||
ld->config.ip_discovery == OPT_AUTOBOOL_FALSE)
return;
/* Peers will have likey reported our dynamic outbound TCP port.