mirror of
https://github.com/XTLS/Xray-core.git
synced 2026-11-03 19:54:34 +00:00
DNS Outbound: Return rcode2 when encountered internal err
This commit is contained in:
1 parent
b69a376aa1
commit
964ebe8ffa
1 file changed
+2
-1
@@ -68,5 +68,6 @@ func RCodeFromError(err error) uint16 {
|
||||
if r, ok := cause.(RCodeError); ok {
|
||||
return uint16(r)
|
||||
}
|
||||
return 0
|
||||
// unknown error
|
||||
return 2
|
||||
}
|
||||
Reference in new issue
Block a user