We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 470460f commit e1c7ea1Copy full SHA for e1c7ea1
1 file changed
dnscrypt-proxy/xtransport.go
@@ -503,7 +503,7 @@ func (xTransport *XTransport) Fetch(
503
if xTransport.h3Transport != nil && !hasAltSupport {
504
if alt, found := resp.Header["Alt-Svc"]; found {
505
dlog.Debugf("Alt-Svc [%s]: [%s]", url.Host, alt)
506
- altPort := uint16(port)
+ altPort := uint16(port & 0xffff)
507
for i, xalt := range alt {
508
for j, v := range strings.Split(xalt, ";") {
509
if i > 8 || j > 16 {
0 commit comments