From 964ebe8ffa7b108f54220ba17dd31dbbf542da2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A3=8E=E6=89=87=E6=BB=91=E7=BF=94=E7=BF=BC?= Date: Sun, 19 Oct 2025 16:53:21 +0000 Subject: [PATCH] DNS Outbound: Return rcode2 when encountered internal err --- features/dns/client.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/features/dns/client.go b/features/dns/client.go index 6eb4bd08..4ee5c5f9 100644 --- a/features/dns/client.go +++ b/features/dns/client.go @@ -68,5 +68,6 @@ func RCodeFromError(err error) uint16 { if r, ok := cause.(RCodeError); ok { return uint16(r) } - return 0 + // unknown error + return 2 }