quic-go http3 can not access

354 views Asked by At

My code:

package main

import (
    "github.com/quic-go/quic-go/http3"
    "log"
    "net/http"
)

func main() {
    mux := http.NewServeMux()
    mux.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
        w.Write([]byte("Hello, HTTP/3!"))
    })
    log.Fatal(http3.ListenAndServeQUIC("0.0.0.0:8443", "/usr/local/pki/cert.pem", "/usr/local/pki/cert-key.pem", mux))
}

successfully started(no firewall)

enter image description here

Chrome has enabled quic.

Can't access from browser.(This site can’t be reached)

0

There are 0 answers