Add fallback local DNS server for iOS

This commit is contained in:
世界
2025-02-20 17:18:47 +08:00
parent 32c01e3622
commit 2e8fc1c977
11 changed files with 293 additions and 45 deletions

View File

@@ -26,7 +26,7 @@ func HandleStreamDNSRequest(ctx context.Context, router adapter.DNSRouter, conn
return err
}
if queryLength == 0 {
return dns.RCodeFormatError
return dns.RcodeFormatError
}
buffer := buf.NewSize(int(queryLength))
defer buffer.Release()