Update dns.go

pull/4926/head
xqzr 2025-07-24 13:54:52 +08:00 committed by GitHub
parent 452a9272db
commit 8dfc76f469
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 3 deletions

View File

@ -66,11 +66,9 @@ func packDomainName(s string, msg []byte) (off1 int, err error) {
bs []byte
)
for i := 0; i < ls; i++ {
var c byte
var c byte = bs[i]
if bs == nil {
c = s[i]
} else {
c = bs[i]
}
switch c {