summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/services_dhcp.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr/local/www/services_dhcp.php b/usr/local/www/services_dhcp.php
index 2ba47bd..6f8922d 100755
--- a/usr/local/www/services_dhcp.php
+++ b/usr/local/www/services_dhcp.php
@@ -55,7 +55,7 @@ $pconfig['deftime'] = $config['dhcpd'][$if]['defaultleasetime'];
$pconfig['maxtime'] = $config['dhcpd'][$if]['maxleasetime'];
$pconfig['gateway'] = $config['dhcpd'][$if]['gateway'];
list($pconfig['wins1'],$pconfig['wins2']) = $config['dhcpd'][$if]['winsserver'];
-list($pconfig['dns1'],$pconfig['dns2']) = $config['dhcpd'][$if]['dns'];
+list($pconfig['dns1'],$pconfig['dns2']) = $config['dhcpd'][$if]['dnsserver'];
$pconfig['enable'] = isset($config['dhcpd'][$if]['enable']);
$pconfig['denyunknown'] = isset($config['dhcpd'][$if]['denyunknown']);
$pconfig['staticarp'] = isset($config['dhcpd'][$if]['staticarp']);
@@ -152,9 +152,9 @@ if ($_POST) {
$config['dhcpd'][$if]['winsserver'][] = $_POST['wins2'];
if ($_POST['dns1'])
- $config['dhcpd'][$if]['dns1'][] = $_POST['wins1'];
+ $config['dhcpd'][$if]['dnsserver'][] = $_POST['dns1'];
if ($_POST['dns2'])
- $config['dhcpd'][$if]['dns2'][] = $_POST['wins2'];
+ $config['dhcpd'][$if]['dnsserver'][] = $_POST['dns2'];
$config['dhcpd'][$if]['gateway'] = $_POST['gateway'];
OpenPOWER on IntegriCloud