mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-21 22:31:48 +01:00
lightningd: do not use remote_addr for always_use_proxy
This commit is contained in:
parent
ef84d6eec5
commit
db95893aec
1 changed files with 4 additions and 0 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Reference in a new issue