Skip to content
Snippets Groups Projects
Commit c1f39c0c authored by Thom's avatar Thom :tools:
Browse files

Do not allow the value `any` for also_notify (#6584)

parent 3b435194
No related branches found
No related tags found
1 merge request!1819Resolve "DNS - any not allowed in also_notify [bind restart fail]"
Pipeline #13936 passed
......@@ -292,7 +292,7 @@ class validate_dns {
if($validator['allowempty'] != 'y') $validator['allowempty'] = 'n';
if($validator['allowempty'] == 'y' && $field_value == '') {
//* Do nothing
} elseif ($field_value == 'any') {
} elseif ($field_value == 'any' && $field_name != "also_notify") {
//* Do nothing
} else {
//* Check if its a IPv4 or IPv6 address/range
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment