mirror of
https://github.com/juanfont/headscale.git
synced 2024-11-24 10:35:22 +00:00
Add and fix unconvert
This commit is contained in:
parent
4ace54c4e1
commit
668e958d3e
@ -43,7 +43,6 @@ linters:
|
||||
- forbidigo
|
||||
- dupl
|
||||
- goconst
|
||||
- unconvert
|
||||
- exhaustive
|
||||
- varnamelen
|
||||
- nilnil
|
||||
|
2
dns.go
2
dns.go
@ -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{}
|
||||
|
Loading…
Reference in New Issue
Block a user