Add and fix unconvert

This commit is contained in:
Kristoffer Dalby 2021-11-14 17:49:54 +01:00
parent 4ace54c4e1
commit 668e958d3e
No known key found for this signature in database
GPG Key ID: 09F62DC067465735
2 changed files with 1 additions and 2 deletions

View File

@ -43,7 +43,6 @@ linters:
- forbidigo
- dupl
- goconst
- unconvert
- exhaustive
- varnamelen
- nilnil

2
dns.go
View File

@ -52,7 +52,7 @@ func generateMagicDNSRootDomains(
// min is the value in the lastOctet byte of the IP
// max is basically 2^wildcardBits - i.e., the value when all the wildcardBits are set to 1
min := uint(netRange.IP[lastOctet])
max := uint((min + 1<<uint(wildcardBits)) - 1)
max := (min + 1<<uint(wildcardBits)) - 1
// here we generate the base domain (e.g., 100.in-addr.arpa., 16.172.in-addr.arpa., etc.)
rdnsSlice := []string{}