fix: Support new version of pyfaup

pull/31/head
Raphaël Vinot 2019-01-21 14:39:04 +01:00
parent 28326e37a9
commit 58ea8a64ca
1 changed files with 5 additions and 5 deletions

View File

@ -228,20 +228,20 @@ class Mail2MISP():
ids_flag = True
self.f.decode(entry)
domainname = self.f.get_domain().decode()
domainname = self.f.get_domain()
if domainname in self.config.excludelist:
# Ignore the entry
continue
hostname = self.f.get_host().decode()
hostname = self.f.get_host()
scheme = self.f.get_scheme()
if scheme:
scheme = scheme.decode()
scheme = scheme
resource_path = self.f.get_resource_path()
if resource_path:
resource_path = resource_path.decode()
resource_path = resource_path
if self.debug:
syslog.syslog(domainname)
@ -298,7 +298,7 @@ class Mail2MISP():
comment = ''
port = self.f.get_port()
if port:
port = port.decode()
port = port
comment = f'on port: {port}'
if is_ip(hostname):