connectd: allow --addr=/socket

It's supposed to be `--bind-addr=/socket` since you can't advertize a
local address, but the parser accepts `--addr=` too, and the intent is
clear.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell 2019-04-08 11:23:23 +09:30 committed by Christian Decker
parent 32215177fe
commit b85340eee6
1 changed files with 2 additions and 2 deletions

View File

@ -993,8 +993,8 @@ static struct wireaddr_internal *setup_listeners(const tal_t *ctx,
status_trace("Created socket listener on file %s",
addrun.sun_path);
add_listen_fd(daemon, fd, false);
/* We don't announce socket names */
assert(!announce);
/* We don't announce socket names, though we allow
* them to lazily specify --addr=/socket. */
add_binding(&binding, &wa);
continue;
case ADDR_INTERNAL_AUTOTOR: