http3: rename ListenAndServe to ListenAndServeTLS (#4522)

* http3: rename ListenAndServe to ListenAndServeTLS

* http3: fix golanglint

---------

Co-authored-by: Shunxin Zhang <shunxin.zhang@shopee.com>
This commit is contained in:
Z.SX
2024-05-15 09:32:56 +08:00
committed by GitHub
parent e41d1f9dd7
commit f3cecf952e
2 changed files with 8 additions and 3 deletions

View File

@@ -163,7 +163,7 @@ func main() {
go func() {
var err error
if *tcp {
err = http3.ListenAndServe(bCap, certFile, keyFile, handler)
err = http3.ListenAndServeTLS(bCap, certFile, keyFile, handler)
} else {
server := http3.Server{
Handler: handler,