aboutsummaryrefslogtreecommitdiff
path: root/middleware/pkg/rcode/rcode.go
diff options
context:
space:
mode:
Diffstat (limited to 'middleware/pkg/rcode/rcode.go')
-rw-r--r--middleware/pkg/rcode/rcode.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/middleware/pkg/rcode/rcode.go b/middleware/pkg/rcode/rcode.go
index 006440071..e871a96ca 100644
--- a/middleware/pkg/rcode/rcode.go
+++ b/middleware/pkg/rcode/rcode.go
@@ -6,6 +6,8 @@ import (
"github.com/miekg/dns"
)
+// ToString convert the rcode to the offical DNS string, or to "RCODE"+value if the RCODE
+// value is unknown.
func ToString(rcode int) string {
if str, ok := dns.RcodeToString[rcode]; ok {
return str