mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-18 21:35:11 +01:00
lightningd: do not use remote_addr for always_use_proxy
This commit is contained in:
parent
ef84d6eec5
commit
db95893aec
@ -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…
Reference in New Issue
Block a user