Skip to content

Commit 8332494

Browse files
committed
Handle Alt-Svc: clear
1 parent 6f96816 commit 8332494

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

dnscrypt-proxy/xtransport.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -775,6 +775,11 @@ func (xTransport *XTransport) Fetch(
775775
dlog.Debugf("Alt-Svc [%s]: [%s]", url.Host, alt)
776776
altPort := uint16(port & 0xffff)
777777
for i, xalt := range alt {
778+
if strings.TrimSpace(xalt) == "clear" {
779+
dlog.Debugf("Alt-Svc clear for [%s] - HTTP/3 not available", url.Host)
780+
altPort = 0
781+
break
782+
}
778783
for j, v := range strings.Split(xalt, ";") {
779784
if i >= 8 || j >= 16 {
780785
break

0 commit comments

Comments
 (0)