mirror of
				https://github.com/juanfont/headscale.git
				synced 2025-10-31 16:11:03 +01:00 
			
		
		
		
	Fix labels cardinality error when registering unknown pre-auth key
This commit is contained in:
		
							parent
							
								
									9a632c17d1
								
							
						
					
					
						commit
						52fd13bfc4
					
				| @ -2,6 +2,10 @@ | ||||
| 
 | ||||
| ## 0.16.0 (2022-xx-xx) | ||||
| 
 | ||||
| ### Changes | ||||
| 
 | ||||
| - Fix labels cardinality error when registering unknown pre-auth key [#519](https://github.com/juanfont/headscale/pull/519) | ||||
| 
 | ||||
| ## 0.15.0 (2022-03-20) | ||||
| 
 | ||||
| **Note:** Take a backup of your database before upgrading. | ||||
|  | ||||
							
								
								
									
										2
									
								
								api.go
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								api.go
									
									
									
									
									
								
							| @ -573,7 +573,7 @@ func (h *Headscale) handleAuthKey( | ||||
| 			machineRegistrations.WithLabelValues("new", RegisterMethodAuthKey, "error", pak.Namespace.Name). | ||||
| 				Inc() | ||||
| 		} else { | ||||
| 			machineRegistrations.WithLabelValues("new", RegisterMethodAuthKey, "error").Inc() | ||||
| 			machineRegistrations.WithLabelValues("new", RegisterMethodAuthKey, "error", "unknown").Inc() | ||||
| 		} | ||||
| 
 | ||||
| 		return | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user