fixed bug where url:port would not be masked
This commit is contained in:
		
							parent
							
								
									bf9918d69c
								
							
						
					
					
						commit
						d26ffddb4b
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		|  | @ -33,6 +33,9 @@ class INIParser(object): | ||||||
|         # Added matching for domains that use /locations. ConnectionPool ignores the location in logs |         # Added matching for domains that use /locations. ConnectionPool ignores the location in logs | ||||||
|         domains_only = [string.split('/')[0] for string in filtered_strings if '/' in string] |         domains_only = [string.split('/')[0] for string in filtered_strings if '/' in string] | ||||||
|         self.filtered_strings.extend(domains_only) |         self.filtered_strings.extend(domains_only) | ||||||
|  |         # Added matching for domains that use :port. ConnectionPool splits the domain/ip from the port | ||||||
|  |         without_port = [string.split(':')[0] for string in filtered_strings if ':' in string] | ||||||
|  |         self.filtered_strings.extend(without_port) | ||||||
| 
 | 
 | ||||||
|         for handler in self.logger.handlers: |         for handler in self.logger.handlers: | ||||||
|             handler.addFilter(BlacklistFilter(set(self.filtered_strings))) |             handler.addFilter(BlacklistFilter(set(self.filtered_strings))) | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue