Add fallback local DNS server for iOS

This commit is contained in:
世界
2025-02-20 17:18:47 +08:00
parent 7347b930ea
commit 6b88de19d2
11 changed files with 293 additions and 45 deletions

View File

@@ -221,7 +221,7 @@ func fetchECHClientConfig(ctx context.Context) func(_ context.Context, serverNam
return nil, err
}
if response.Rcode != mDNS.RcodeSuccess {
return nil, dns.RCodeError(response.Rcode)
return nil, dns.RcodeError(response.Rcode)
}
for _, rr := range response.Answer {
switch resource := rr.(type) {