mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Fix regression on general setup page preventing save with blank DNS servers
Introduced in f700dc9
This commit is contained in:
parent
656cf2ac91
commit
c25e42c8e9
@ -201,7 +201,7 @@ if ($_POST) {
|
||||
}
|
||||
}
|
||||
|
||||
if (count($dnslist) != count(array_unique($dnslist))) {
|
||||
if (count(array_filter($dnslist)) != count(array_unique(array_filter($dnslist)))) {
|
||||
$input_errors[] = gettext('Each configured DNS server must have a unique IP address. Remove the duplicated IP.');
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user