@marcel91200 / caddy Mirror · read-only / commits / 50748e19
Fork 0

Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS

Mirrored from https://github.com/Slazee/caddy.git

Synced Nov 13, 13:00 UTC

core: Check error on ListenQUIC

Matthew Holt committed Sep 8, 2022 at 12:36 UTC 50748e19c34fc90882bbb268c95a2a0acb051752
1 file changed +3
listeners.go
+3
@@ -105,6 +105,9 @@ func ListenQUIC(addr string, tlsConf *tls.Config, activeRequests *int64) (quic.E
105 }
106 return &sharedQuicListener{EarlyListener: el, key: lnKey}, nil
107 })
108 + if err != nil {
109 + return nil, err
110 + }
111
112 ctx, cancel := context.WithCancel(context.Background())
113 return &fakeCloseQuicListener{