mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Initialize DHCP settings before use. Fixes #8919
(cherry picked from commit 124ca36504)
This commit is contained in:
parent
51c3546dd7
commit
8b70d0fbaf
@ -107,6 +107,7 @@ if ($_POST) {
|
||||
$pconfig['server'] = $svrlist;
|
||||
|
||||
if (!$input_errors) {
|
||||
init_config_arr(array('dhcrelay'));
|
||||
$config['dhcrelay']['enable'] = $_POST['enable'] ? true : false;
|
||||
$config['dhcrelay']['interface'] = implode(",", $_POST['interface']);
|
||||
$config['dhcrelay']['agentoption'] = $_POST['agentoption'] ? true : false;
|
||||
|
||||
@ -108,6 +108,7 @@ if ($_POST) {
|
||||
$pconfig['server'] = $svrlist;
|
||||
|
||||
if (!$input_errors) {
|
||||
init_config_arr(array('dhcrelay6'));
|
||||
$config['dhcrelay6']['enable'] = $_POST['enable'] ? true : false;
|
||||
$config['dhcrelay6']['interface'] = implode(",", $_POST['interface']);
|
||||
$config['dhcrelay6']['agentoption'] = $_POST['agentoption'] ? true : false;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user