mirror of
https://github.com/SagerNet/sing-box.git
synced 2026-04-13 20:28:32 +10:00
Add fallback local DNS server for iOS
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -287,7 +287,7 @@ func (t *DNSTransport) Exchange(ctx context.Context, message *mDNS.Msg) (*mDNS.M
|
||||
return nil, E.New("missing default resolvers")
|
||||
}
|
||||
}
|
||||
return nil, dns.RCodeNameError
|
||||
return nil, dns.RcodeNameError
|
||||
}
|
||||
|
||||
type DNSDialer struct {
|
||||
|
||||
Reference in New Issue
Block a user