mirror of
https://github.com/yusing/godoxy.git
synced 2025-05-19 20:32:35 +02:00
fix(server): ensure HTTP handler is set only if initialized
This commit is contained in:
parent
0a13bcb8a3
commit
9d85a41bc5
1 changed files with 3 additions and 1 deletions
|
@ -96,7 +96,9 @@ func (s *Server) Start(parent task.Parent) {
|
|||
TLSConfig: http3.ConfigureTLSConfig(s.https.TLSConfig),
|
||||
}
|
||||
Start(subtask, h3, &s.l)
|
||||
s.http.Handler = advertiseHTTP3(s.http.Handler, h3)
|
||||
if s.http != nil {
|
||||
s.http.Handler = advertiseHTTP3(s.http.Handler, h3)
|
||||
}
|
||||
s.https.Handler = advertiseHTTP3(s.https.Handler, h3)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue