Browse Source
			
			
			Merge pull request #5268 from corbosman/master
			
				[Fix] connIp is not correctly added to request
			
			
				pull/5269/head
			
			
		 
		
			
				
					
						
						Vsevolod Stakhov
					
					11 months ago
					
						
							committed by
							
								
								GitHub
							
						 
					
				 
				
			 
		 
		
			
				
				  
				  No known key found for this signature in database
				  
				  	
						GPG Key ID: B5690EEEBB952194
				  	
				  
				
			
		
		
		
	
		
			
				 1 changed files with 
3 additions and 
1 deletions
			 
			
		 
		
			
				- 
					
					
					 
					lualib/lua_scanners/cloudmark.lua
				
 
			
		
		
			
				
					
					
						
							
								
									
										
											
	
		
			
				
					| 
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -345,7 +345,9 @@ local function cloudmark_check(task, content, digest, rule, maybe_part) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    local fip = task:get_from_ip() | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    if fip and fip:is_valid() then | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      request['connIp'] = tostring(fip) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      request['connIp'] = { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        data = tostring(fip) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    end | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    local hostname = task:get_hostname() | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
				
				 | 
				
					
  |