Fix mask error

This commit is contained in:
angelblue05 2018-09-08 02:01:45 -05:00
parent f7ee4223ad
commit acafe27b6c

View file

@ -34,7 +34,9 @@ class LogHandler(logging.StreamHandler):
self.sensitive['Token'].append(server['AccessToken'])
self.sensitive['Server'].append(server['LocalAddress'].split('://')[1])
self.sensitive['Server'].append(server.get('RemoteAddress').split('://')[1])
if server.get('RemoteAddress'):
self.sensitive['Server'].append(server['RemoteAddress'].split('://')[1])
if server.get('ManualAddress'):
self.sensitive['Server'].append(server['ManualAddress'].split('://')[1])