char pn[INET6_ADDRSTRLEN];
struct connection *conn;
struct appctx *tmpctx;
+ uint32_t anon_key = appctx->cli_anon_key;
chunk_reset(&trash);
case AF_INET:
case AF_INET6:
chunk_appendf(&trash, " source=%s:%d\n",
- HA_ANON_CLI(pn), get_host_port(conn->src));
+ HA_ANON_STR(anon_key, pn), get_host_port(conn->src));
break;
case AF_UNIX:
chunk_appendf(&trash, " source=unix:%d\n", strm_li(strm)->luid);
chunk_appendf(&trash,
" frontend=%s (id=%u mode=%s), listener=%s (id=%u)",
- HA_ANON_CLI(strm_fe(strm)->id), strm_fe(strm)->uuid, proxy_mode_str(strm_fe(strm)->mode),
+ HA_ANON_STR(anon_key, strm_fe(strm)->id), strm_fe(strm)->uuid, proxy_mode_str(strm_fe(strm)->mode),
strm_li(strm) ? strm_li(strm)->name ? strm_li(strm)->name : "?" : "?",
strm_li(strm) ? strm_li(strm)->luid : 0);
case AF_INET:
case AF_INET6:
chunk_appendf(&trash, " addr=%s:%d\n",
- HA_ANON_CLI(pn), get_host_port(conn->dst));
+ HA_ANON_STR(anon_key, pn), get_host_port(conn->dst));
break;
case AF_UNIX:
chunk_appendf(&trash, " addr=unix:%d\n", strm_li(strm)->luid);
if (strm->be->cap & PR_CAP_BE)
chunk_appendf(&trash,
" backend=%s (id=%u mode=%s)",
- HA_ANON_CLI(strm->be->id),
+ HA_ANON_STR(anon_key, strm->be->id),
strm->be->uuid, proxy_mode_str(strm->be->mode));
else
chunk_appendf(&trash, " backend=<NONE> (id=-1 mode=-)");
case AF_INET:
case AF_INET6:
chunk_appendf(&trash, " addr=%s:%d\n",
- HA_ANON_CLI(pn), get_host_port(conn->src));
+ HA_ANON_STR(anon_key, pn), get_host_port(conn->src));
break;
case AF_UNIX:
chunk_appendf(&trash, " addr=unix\n");
if (strm->be->cap & PR_CAP_BE)
chunk_appendf(&trash,
" server=%s (id=%u)",
- objt_server(strm->target) ? HA_ANON_CLI(__objt_server(strm->target)->id) : "<none>",
+ objt_server(strm->target) ? HA_ANON_STR(anon_key, __objt_server(strm->target)->id) : "<none>",
objt_server(strm->target) ? __objt_server(strm->target)->puid : 0);
else
chunk_appendf(&trash, " server=<NONE> (id=-1)");
case AF_INET:
case AF_INET6:
chunk_appendf(&trash, " addr=%s:%d\n",
- HA_ANON_CLI(pn), get_host_port(conn->dst));
+ HA_ANON_STR(anon_key, pn), get_host_port(conn->dst));
break;
case AF_UNIX:
chunk_appendf(&trash, " addr=unix\n");