Skip to content

Commit db95893

Browse files
m-schmoockrustyrussell
authored andcommitted
lightningd: do not use remote_addr for always_use_proxy
1 parent ef84d6e commit db95893

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lightningd/peer_control.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1116,6 +1116,10 @@ static void update_remote_addr(struct lightningd *ld,
11161116
const struct wireaddr *remote_addr,
11171117
const struct node_id peer_id)
11181118
{
1119+
/* failsafe to prevent privacy leakage. */
1120+
if (ld->always_use_proxy)
1121+
return;
1122+
11191123
switch (remote_addr->type) {
11201124
case ADDR_TYPE_IPV4:
11211125
/* init pointers first time */

0 commit comments

Comments
 (0)