fixed bug where url:port would not be masked

This commit is contained in:
Nicholas St. Germain 2019-01-02 23:35:29 -06:00
parent bf9918d69c
commit d26ffddb4b

View file

@ -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)))