blob: 989f90fddd27ed235876e51870821b0faa428c83 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
package middleware
import (
"strconv"
"github.com/miekg/dns"
)
func RcodeToString(rcode int) string {
if str, ok := dns.RcodeToString[rcode]; ok {
return str
}
return "RCODE" + strconv.Itoa(rcode)
}
|