diff options
author | Matt Holt <[email protected]> | 2022-09-21 12:55:23 -0600 |
---|---|---|
committer | GitHub <[email protected]> | 2022-09-21 12:55:23 -0600 |
commit | 1426c97da57fc84d8b584a960c43fbb58df68b80 (patch) | |
tree | 2e4a70639a4767d2ad728fad37fd1512091518c7 /modules/caddyhttp/app.go | |
parent | 44ad0cedafcd32d5edcf3c6ed62834641d10fa2f (diff) | |
download | caddy-1426c97da57fc84d8b584a960c43fbb58df68b80.tar.gz caddy-1426c97da57fc84d8b584a960c43fbb58df68b80.zip |
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/caddyhttp/app.go')
-rw-r--r-- | modules/caddyhttp/app.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/caddyhttp/app.go b/modules/caddyhttp/app.go index 84b0b9416..c9a554314 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 |