1
0
mirror of https://github.com/StackExchange/dnscontrol.git synced 2024-05-11 05:55:12 +00:00

Release v3.10.1 (#1194)

* Release v3.10.1

* Update dependencies

* RELENG: Update doc to verify version string

* Fix codeql issue
This commit is contained in:
Tom Limoncelli
2021-07-01 10:17:43 -04:00
committed by GitHub
parent 4b68e14039
commit 0630c185cf
5 changed files with 48 additions and 26 deletions

View File

@ -4,6 +4,7 @@ import (
"fmt"
"net"
"regexp"
"strconv"
"strings"
)
@ -88,7 +89,7 @@ func ipMatchesClasslessDomain(ip net.IP, domain string) bool {
// atob converts a to a byte value or panics.
func atob(s string) uint8 {
if i, err := ParseUint(s, 10, 8); err == nil {
if i, err := strconv.ParseUint(s, 10, 8); err == nil {
return byte(i)
}
panic(fmt.Sprintf("%v is not a byte", s))