mirror of
https://github.com/DNSCrypt/dnscrypt-proxy.git
synced 2025-03-04 02:14:40 +01:00
Make CodeQL happy (#2294)
This commit is contained in:
parent
470460f069
commit
e1c7ea1770
1 changed files with 1 additions and 1 deletions
|
@ -503,7 +503,7 @@ func (xTransport *XTransport) Fetch(
|
|||
if xTransport.h3Transport != nil && !hasAltSupport {
|
||||
if alt, found := resp.Header["Alt-Svc"]; found {
|
||||
dlog.Debugf("Alt-Svc [%s]: [%s]", url.Host, alt)
|
||||
altPort := uint16(port)
|
||||
altPort := uint16(port & 0xffff)
|
||||
for i, xalt := range alt {
|
||||
for j, v := range strings.Split(xalt, ";") {
|
||||
if i > 8 || j > 16 {
|
||||
|
|
Loading…
Add table
Reference in a new issue