mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-21 22:28:41 -04: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
1 changed files with 3 additions and 1 deletions
|
|
@ -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…
Reference in a new issue