Skip to content

Commit

Permalink
lightningd: do not use remote_addr for always_use_proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
m-schmoock authored and rustyrussell committed Mar 11, 2022
1 parent ef84d6e commit db95893
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lightningd/peer_control.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit db95893

Please sign in to comment.