Add BaseContext to http servers

This commit is contained in:
H1JK
2023-04-08 18:46:35 +08:00
committed by 世界
parent 9d97ed6220
commit d9757bfaff
4 changed files with 12 additions and 0 deletions

View File

@@ -90,6 +90,9 @@ func (n *Naive) Start() error {
n.httpServer = &http.Server{
Handler: n,
TLSConfig: tlsConfig,
BaseContext: func(listener net.Listener) context.Context {
return n.ctx
},
}
go func() {
var sErr error