mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-17 18:14:42 +00:00
dhcp server / static leases, issue with loading settings into form. closes https://github.com/opnsense/core/issues/1568
This commit is contained in:
parent
1626ab87dc
commit
8e0583e993
@ -52,8 +52,8 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
|
||||
// read form data
|
||||
$pconfig = array();
|
||||
$config_copy_fieldnames = array('mac', 'cid', 'hostname', 'filename', 'rootpath', 'descr', 'arp_table_static_entry',
|
||||
'defaultleasetime', 'maxleasetime', 'gateway', 'domain', 'domainsearchlist', 'wins1', 'wins2', 'dns1', 'dns2', 'ddnsdomain',
|
||||
'ddnsdomainprimary', 'ddnsdomainkeyname', 'ddnsdomainkey', 'ddnsupdate', 'ntp1', 'ntp2', 'tftp', 'ipaddr',
|
||||
'defaultleasetime', 'maxleasetime', 'gateway', 'domain', 'domainsearchlist', 'winsserver', 'dnsserver', 'ddnsdomain',
|
||||
'ddnsdomainprimary', 'ddnsdomainkeyname', 'ddnsdomainkey', 'ddnsupdate', 'ntpserver', 'tftp', 'ipaddr',
|
||||
'winsserver', 'dnsserver');
|
||||
foreach ($config_copy_fieldnames as $fieldname) {
|
||||
if (isset($if) && isset($id) && isset($config['dhcpd'][$if]['staticmap'][$id][$fieldname])) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user