self codereview, missed a function call change
This commit is contained in:
		
							parent
							
								
									c61270237d
								
							
						
					
					
						commit
						3af15f58b9
					
				| 
						 | 
				
			
			@ -161,7 +161,7 @@ func NewClient(db store.IStore) echo.HandlerFunc {
 | 
			
		|||
		}
 | 
			
		||||
 | 
			
		||||
		// validate extra AllowedIPs
 | 
			
		||||
		if util.ValidateAllowedIPs(client.ExtraAllowedIPs) == false {
 | 
			
		||||
		if util.ValidateExtraAllowedIPs(client.ExtraAllowedIPs) == false {
 | 
			
		||||
			log.Warnf("Invalid Extra AllowedIPs input from user: %v", client.ExtraAllowedIPs)
 | 
			
		||||
			return c.JSON(http.StatusBadRequest, jsonHTTPResponse{false, "Extra AllowedIPs must be in CIDR format"})
 | 
			
		||||
		}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue