mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-24 23:31:40 +02:00
MINOR: cli: displays sockpair@ in "show cli sockets"
The 'show cli sockets' was not handling the sockpairs, it now displays the fd of the socket and also show the unknown protocols.
This commit is contained in:
parent
cf62f7e3cb
commit
2631434b4b
@ -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 ");
|
||||
|
Loading…
x
Reference in New Issue
Block a user