Skip to content

Commit 54ac6b4

Browse files
committed
feat: show vhost count
1 parent 0ce138e commit 54ac6b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

daemon.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ func (d *Daemon) hello(w http.ResponseWriter, r *http.Request) {
253253
// listClients currently connected to the vproxy daemon
254254
func (d *Daemon) listClients(w http.ResponseWriter, r *http.Request) {
255255
w.WriteHeader(200)
256-
fmt.Fprintln(w, "vhosts:")
256+
fmt.Fprintf(w, " %d vhosts:\n", len(d.vhost.Servers))
257257
for _, v := range d.vhost.Servers {
258258
fmt.Fprintf(w, "%s -> %s:%d\n", v.Host, v.ServiceHost, v.Port)
259259
}

0 commit comments

Comments
 (0)