mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-13 08:09:41 +00:00
Unbound: prevent wilcard domains for this machines primary domain (since you can't forward all and be responsible for a part). mentioned here https://github.com/opnsense/core/issues/4049
This commit is contained in:
parent
600c794fcf
commit
74f235ac4a
@ -83,6 +83,13 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
|
||||
$input_errors[] = gettext("A valid domain must be specified.");
|
||||
}
|
||||
|
||||
if (!empty($pconfig['domain']) && $pconfig['domain'] == $config['system']['domain'] && $pconfig['host'] == '*') {
|
||||
$input_errors[] = sprintf(
|
||||
gettext("A wildcard domain override is not supported for this machines domain '%s'."),
|
||||
$config['system']['domain']
|
||||
);
|
||||
}
|
||||
|
||||
switch ($pconfig['rr']) {
|
||||
case 'A': /* also: AAAA */
|
||||
$reqdfields = explode(" ", "ip");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user