mirror of
				https://github.com/juanfont/headscale.git
				synced 2025-10-31 10:29:20 +00:00 
			
		
		
		
	Add and fix unconvert
This commit is contained in:
		| @@ -43,7 +43,6 @@ linters: | |||||||
|     - forbidigo |     - forbidigo | ||||||
|     - dupl |     - dupl | ||||||
|     - goconst |     - goconst | ||||||
|     - unconvert |  | ||||||
|     - exhaustive |     - exhaustive | ||||||
|     - varnamelen |     - varnamelen | ||||||
|     - nilnil |     - nilnil | ||||||
|   | |||||||
							
								
								
									
										2
									
								
								dns.go
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								dns.go
									
									
									
									
									
								
							| @@ -52,7 +52,7 @@ func generateMagicDNSRootDomains( | |||||||
| 	// min is the value in the lastOctet byte of the IP | 	// 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 | 	// max is basically 2^wildcardBits - i.e., the value when all the wildcardBits are set to 1 | ||||||
| 	min := uint(netRange.IP[lastOctet]) | 	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.) | 	// here we generate the base domain (e.g., 100.in-addr.arpa., 16.172.in-addr.arpa., etc.) | ||||||
| 	rdnsSlice := []string{} | 	rdnsSlice := []string{} | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Kristoffer Dalby
					Kristoffer Dalby