diff options
Diffstat (limited to 'lib/dns/resource_record.go')
| -rw-r--r-- | lib/dns/resource_record.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/dns/resource_record.go b/lib/dns/resource_record.go index 88047f1d..f90cc85c 100644 --- a/lib/dns/resource_record.go +++ b/lib/dns/resource_record.go @@ -231,9 +231,9 @@ func unpackDomainName(packet []byte, start uint) (name string, end uint, err err logp = `unpackDomainName` x = int(start) - out strings.Builder - count, y byte - isJump bool + out strings.Builder + count byte + isJump bool ) end = start @@ -272,7 +272,7 @@ func unpackDomainName(packet []byte, start uint) (name string, end uint, err err if out.Len() > 0 { out.WriteByte('.') } - for y = 0; y < count; y++ { + for range count { if packet[x] >= 'A' && packet[x] <= 'Z' { out.WriteByte(packet[x] + 32) } else { |
