libs/tools: change resolve_identifier() to return ipv4 and ipv6 separately
All checks were successful
bundlewrap/pipeline/head This commit looks good
All checks were successful
bundlewrap/pipeline/head This commit looks good
This commit is contained in:
parent
67386d9efa
commit
eaf268aea9
3 changed files with 28 additions and 28 deletions
|
@ -36,9 +36,10 @@ def populate_permitted_ips_list_with_ips_from_repo(metadata):
|
|||
ips = set()
|
||||
|
||||
for rnode in repo.nodes:
|
||||
for ip in repo.libs.tools.resolve_identifier(repo, rnode.name):
|
||||
if not ip.is_private:
|
||||
ips.add(str(ip))
|
||||
for identifier, found_ips in repo.libs.tools.resolve_identifier(repo, rnode.name).items():
|
||||
for ip in found_ips:
|
||||
if not ip.is_private:
|
||||
ips.add(str(ip))
|
||||
|
||||
return {
|
||||
'rspamd': {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue