fix: [DomainClassifier] set optional dns port

This commit is contained in:
Alexandre Dulaunoy 2022-07-30 15:44:23 +02:00
parent f933e531cb
commit 115c48f65c
Signed by: adulau
GPG key ID: 09E2CD4944E6CBCD

View file

@ -38,7 +38,7 @@ class Extract:
self.rawtext = rawtext self.rawtext = rawtext
self.presolver = dns.resolver.Resolver() self.presolver = dns.resolver.Resolver()
self.presolver.nameservers = nameservers self.presolver.nameservers = nameservers
self.presolver.port = 53 self.presolver.port = port
self.presolver.lifetime = 1.0 self.presolver.lifetime = 1.0
self.bgprankingserver = 'pdns.circl.lu' self.bgprankingserver = 'pdns.circl.lu'
self.vdomain = [] self.vdomain = []