提交 f08abbfb 编写于 作者: M MendelGusmao

Filter duplicate public IP addresses in IP plugin

上级 f68da864
......@@ -173,7 +173,7 @@ class PublicIpAddress(object):
if q.qsize() > 0:
ip = q.get()
return ip
return ', '.join(set([x.strip() for x in ip.split(',')]))
def _get_ip_public(self, queue_target, url, json=False, key=None):
"""Request the url service and put the result in the queue_target."""
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册