Add report client wildcard

This commit is contained in:
Cort Buffington 2017-05-25 14:08:52 -05:00
parent 509b3b1173
commit 10cec77baa
1 changed files with 2 additions and 1 deletions

View File

@ -1025,7 +1025,8 @@ class reportFactory(Factory):
self._logger = logger
def buildProtocol(self, addr):
if (addr.host) in self._config['REPORTS']['REPORT_CLIENTS']:
print(self._config['REPORTS']['REPORT_CLIENTS'])
if (addr.host) in self._config['REPORTS']['REPORT_CLIENTS'] or '*' in self._config['REPORTS']['REPORT_CLIENTS']:
return report(self)
else:
return None