lightningd: do not use remote_addr for always_use_proxy

This commit is contained in:
Michael Schmoock 2022-03-09 14:28:20 +01:00 committed by Rusty Russell
parent ef84d6eec5
commit db95893aec
1 changed files with 4 additions and 0 deletions

View File

@ -1116,6 +1116,10 @@ static void update_remote_addr(struct lightningd *ld,
const struct wireaddr *remote_addr,
const struct node_id peer_id)
{
/* failsafe to prevent privacy leakage. */
if (ld->always_use_proxy)
return;
switch (remote_addr->type) {
case ADDR_TYPE_IPV4:
/* init pointers first time */