summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorMatt Holt <mholt@users.noreply.github.com>2022-09-21 12:55:23 -0600
committerGitHub <noreply@github.com>2022-09-21 12:55:23 -0600
commit1426c97da57fc84d8b584a960c43fbb58df68b80 (patch)
tree2e4a70639a4767d2ad728fad37fd1512091518c7 /modules
parent44ad0cedafcd32d5edcf3c6ed62834641d10fa2f (diff)
core: Reuse unix sockets (UDS) and don't try to serve HTTP/3 over UDS (#5063)
* core: Reuse unix sockets * Don't serve HTTP/3 over unix sockets This requires upstream support, if even useful * Don't use unix build tag... yet * Fix build tag * Allow ErrNotExist when unlinking socket
Diffstat (limited to 'modules')
-rw-r--r--modules/caddyhttp/app.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/caddyhttp/app.go b/modules/caddyhttp/app.go
index 84b0b94..c9a5543 100644
--- a/modules/caddyhttp/app.go
+++ b/modules/caddyhttp/app.go
@@ -409,7 +409,7 @@ func (app *App) Start() error {
ln = tls.NewListener(ln, tlsCfg)
// enable HTTP/3 if configured
- if srv.protocol("h3") {
+ if srv.protocol("h3") && !listenAddr.IsUnixNetwork() {
app.logger.Info("enabling HTTP/3 listener", zap.String("addr", hostport))
if err := srv.serveHTTP3(hostport, tlsCfg); err != nil {
return err