Add fallback local DNS server for iOS

This commit is contained in:
世界 committed 2025-07-08 13:12:18 +08:00
1 parent 5c4211e849
commit 9a5f69f435
11 files changed
+293 -45

No files matched your search

+1 -1
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()