mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-12-17 20:54:36 +03:00
DNS Outbound: Return rcode2 when encountered internal err
This commit is contained in:
@@ -68,5 +68,6 @@ func RCodeFromError(err error) uint16 {
|
|||||||
if r, ok := cause.(RCodeError); ok {
|
if r, ok := cause.(RCodeError); ok {
|
||||||
return uint16(r)
|
return uint16(r)
|
||||||
}
|
}
|
||||||
return 0
|
// unknown error
|
||||||
|
return 2
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user