summaryrefslogtreecommitdiffhomepage
path: root/listeners.go
diff options
context:
space:
mode:
authorMatthew Holt <[email protected]>2022-09-08 12:36:31 -0600
committerMatthew Holt <[email protected]>2022-09-08 12:36:31 -0600
commit50748e19c34fc90882bbb268c95a2a0acb051752 (patch)
treeb43a254b644d28cf38287cfbe793e6924a9cfc8f /listeners.go
parentc19f2072379e18fbf3b2409ecd49ca023d62b882 (diff)
downloadcaddy-50748e19c34fc90882bbb268c95a2a0acb051752.tar.gz
caddy-50748e19c34fc90882bbb268c95a2a0acb051752.zip
core: Check error on ListenQUIC
Diffstat (limited to 'listeners.go')
-rw-r--r--listeners.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/listeners.go b/listeners.go
index 591444391..b49491088 100644
--- a/listeners.go
+++ b/listeners.go
@@ -105,6 +105,9 @@ func ListenQUIC(addr string, tlsConf *tls.Config, activeRequests *int64) (quic.E
}
return &sharedQuicListener{EarlyListener: el, key: lnKey}, nil
})
+ if err != nil {
+ return nil, err
+ }
ctx, cancel := context.WithCancel(context.Background())
return &fakeCloseQuicListener{