Skip to content

Commit

Permalink
allow --bind-addr (not announce) to work with tor autoservice
Browse files Browse the repository at this point in the history
fix issue ElementsProject#2183 as reported by @gabridome

Signed-off-by: Saibato <[email protected]>
  • Loading branch information
Saibato authored and cdecker committed Dec 19, 2018
1 parent 4c9e07e commit c60725e
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions connectd/connectd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1060,12 +1060,15 @@ static struct wireaddr_internal *setup_listeners(const tal_t *ctx,
if (!(proposed_listen_announce[i] & ADDR_LISTEN))
continue;

if (!(proposed_listen_announce[i] & ADDR_ANNOUNCE))
continue;

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 c60725e

Please sign in to comment.