Skip to content
Snippets Groups Projects
Commit 2990abb3 authored by Zoran Peričić's avatar Zoran Peričić
Browse files

ipadnszone: Accept localhost and localnet in allow_query.

parent c75b0292
No related merge requests found
......@@ -256,8 +256,7 @@ class DNSZoneModule(FreeIPABaseModule):
if not any([
is_ip_address(ip),
is_ip_network_address(ip),
ip == "any",
ip == "none"
ip in ["any", "localhost", "localnets", "none"]
])
]
if any(invalid_ips):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment