Skip to content

Commit e1c7ea1

Browse files
authored
Make CodeQL happy (#2294)
1 parent 470460f commit e1c7ea1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

dnscrypt-proxy/xtransport.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ func (xTransport *XTransport) Fetch(
503503
if xTransport.h3Transport != nil && !hasAltSupport {
504504
if alt, found := resp.Header["Alt-Svc"]; found {
505505
dlog.Debugf("Alt-Svc [%s]: [%s]", url.Host, alt)
506-
altPort := uint16(port)
506+
altPort := uint16(port & 0xffff)
507507
for i, xalt := range alt {
508508
for j, v := range strings.Split(xalt, ";") {
509509
if i > 8 || j > 16 {

0 commit comments

Comments
 (0)