The 'show cli sockets' was not handling the sockpairs, it now displays the fd of the socket and also show the unknown protocols. --- src/cli.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/cli.c b/src/cli.c index f1d22a489..ed5de6c09 100644 --- a/src/cli.c +++ b/src/cli.c @@ -1068,8 +1068,10 @@ static int cli_io_handler_show_cli_sock(struct appctx *appctx) addr_to_str(&l->addr, addr, sizeof(addr)); port_to_str(&l->addr, port, sizeof(port)); chunk_appendf(&trash, "[%s]:%s ", addr, port); + } else if (l->addr.ss_family == AF_CUST_SOCKPAIR) { + chunk_appendf(&trash, "sockpair@%d ", ((struct sockaddr_in *)&l->addr)->sin_addr.s_addr); } else - continue; + chunk_appendf(&trash, "unknown "); if ((bind_conf->level & ACCESS_LVL_MASK) == ACCESS_LVL_ADMIN) chunk_appendf(&trash, "admin "); -- 2.16.4