Skip to content

Commit

Permalink
Replace the http3.ListenAndServe function with http3.ListenAndServeTLS (
Browse files Browse the repository at this point in the history
  • Loading branch information
mstmdev authored Dec 6, 2024
1 parent 1c9e021 commit 686910d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/httpfs/file_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func StartFileServer(opt server.Option) error {
var err error
if opt.EnableTLS {
if opt.EnableHTTP3 {
err = logger.ErrorIf(http3.ListenAndServe(opt.FileServerAddr, opt.TLSCertFile, opt.TLSKeyFile, engine.Handler()), "running the http3 server error")
err = logger.ErrorIf(http3.ListenAndServeTLS(opt.FileServerAddr, opt.TLSCertFile, opt.TLSKeyFile, engine.Handler()), "running the http3 server error")
} else {
err = logger.ErrorIf(engine.RunTLS(opt.FileServerAddr, opt.TLSCertFile, opt.TLSKeyFile), "running the https server error")
}
Expand Down

0 comments on commit 686910d

Please sign in to comment.