From d24e10053fc4c60a67b85dd867572a41f54259db Mon Sep 17 00:00:00 2001 From: Alexandre Dulaunoy Date: Tue, 9 Jun 2020 13:19:45 +0000 Subject: [PATCH] fix: [netaddr] fix the IP lookup --- bin/x509/ip-ssl-subject-api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/x509/ip-ssl-subject-api.py b/bin/x509/ip-ssl-subject-api.py index 4b2574c..b62f406 100644 --- a/bin/x509/ip-ssl-subject-api.py +++ b/bin/x509/ip-ssl-subject-api.py @@ -80,7 +80,7 @@ class SSLQueryHandler(tornado.web.RequestHandler): if not self._finished: self.finish() for ip in iplist: - s = r.smembers(ip) + s = r.smembers(str(ip)) if s: out[str(ip)] = {} out[str(ip)]['certificates'] = []