mirror of
https://gitclone.com/github.com/MetaCubeX/Clash.Meta
synced 2024-11-14 21:31:16 +08:00
fix: DoH retry HTTP/3
This commit is contained in:
parent
a73e690172
commit
4e272ff066
@ -172,7 +172,7 @@ func (doh *dohTransport) RoundTrip(req *http.Request) (*http.Response, error) {
|
||||
var h3Err bool
|
||||
var fallbackErr bool
|
||||
defer func() {
|
||||
if doh.preferH3 && h3Err {
|
||||
if doh.preferH3 && (h3Err || fallbackErr) {
|
||||
doh.canUseH3.Store(doh.preferH3 && fallbackErr)
|
||||
}
|
||||
}()
|
||||
|
Loading…
Reference in New Issue
Block a user