summaryrefslogtreecommitdiff
path: root/modules/caddyhttp/app.go
diff options
context:
space:
mode:
authorMatt Holt <mholt@users.noreply.github.com>2022-08-01 13:36:22 -0600
committerGitHub <noreply@github.com>2022-08-01 13:36:22 -0600
commitf783290f40febd3eef2a299911ad95bab4d2b414 (patch)
tree1baed0987f2ad5ed723dbda671f0eec13a414ca7 /modules/caddyhttp/app.go
parentebd6abcbd5f6b31b7b4cadca0a546d9f0eab9ad3 (diff)
caddyhttp: Implement `caddy respond` command (#4870)
Diffstat (limited to 'modules/caddyhttp/app.go')
-rw-r--r--modules/caddyhttp/app.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/caddyhttp/app.go b/modules/caddyhttp/app.go
index 1894a97..82e052c 100644
--- a/modules/caddyhttp/app.go
+++ b/modules/caddyhttp/app.go
@@ -392,6 +392,8 @@ func (app *App) Start() error {
//nolint:errcheck
go s.Serve(ln)
+
+ srv.listeners = append(srv.listeners, ln)
app.servers = append(app.servers, s)
}
}