mirror of
https://github.com/TeamPiped/http3-ytproxy.git
synced 2024-08-14 23:56:43 +00:00
Don't use QUIC as it's unstable.
This commit is contained in:
parent
2fe47dd911
commit
f844b7a793
1 changed files with 2 additions and 5 deletions
7
main.go
7
main.go
|
@ -58,11 +58,8 @@ func genericHTTPProxy(w http.ResponseWriter, req *http.Request) {
|
||||||
|
|
||||||
var client *http.Client
|
var client *http.Client
|
||||||
|
|
||||||
if strings.HasPrefix(req.URL.Path, "/videoplayback") { // https://github.com/lucas-clemente/quic-go/issues/2836
|
// https://github.com/lucas-clemente/quic-go/issues/2836
|
||||||
client = h2client
|
client = h2client
|
||||||
} else {
|
|
||||||
client = h3client
|
|
||||||
}
|
|
||||||
|
|
||||||
resp, err := client.Do(request)
|
resp, err := client.Do(request)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue