diff --git a/src/dumpstats.c b/src/dumpstats.c index b721c5874..2cfd39a94 100644 --- a/src/dumpstats.c +++ b/src/dumpstats.c @@ -2349,10 +2349,16 @@ static int stats_dump_sv_stats(struct stream_interface *si, struct proxy *px, in ref->observe ? "/Health Analyses" : "", ref->counters.down_trans, human_time(srv_downtime(sv), 1)); } - else if (sv != ref) - chunk_appendf(&trash, - "via %s/%s", - ref->proxy->id, ref->id, ref->proxy->id, ref->id); + else if (sv != ref) { + if (sv->state & SRV_MAINTAIN) + chunk_appendf(&trash, + "", + ref->proxy->id, ref->id); + else + chunk_appendf(&trash, + "via %s/%s", + ref->proxy->id, ref->id, ref->proxy->id, ref->id); + } else chunk_appendf(&trash, "");