Skip to content

Commit

Permalink
add autotor to announcable only if ADDR_ANNOUNCE
Browse files Browse the repository at this point in the history
fix issue ElementsProject#2183


Signed-off-by: Saibato <Saibato.naga@pm.me>
  • Loading branch information
Saibato committed Dec 18, 2018
1 parent c02929f commit 9b11cec
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion connectd/connectd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1062,7 +1062,13 @@ static struct wireaddr_internal *setup_listeners(const tal_t *ctx,

if (proposed_wireaddr[i].itype != ADDR_INTERNAL_AUTOTOR)
continue;

if (!(proposed_listen_announce[i] & ADDR_ANNOUNCE)) {
tor_autoservice(tmpctx,
&proposed_wireaddr[i].u.torservice,
tor_password,
binding);
continue;
};
add_announcable(announcable,
tor_autoservice(tmpctx,
&proposed_wireaddr[i].u.torservice,
Expand Down

0 comments on commit 9b11cec

Please sign in to comment.