summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-08-29 18:14:22 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-08-29 18:14:22 +0000
commit06d754d459022d776460e9dba897c30fe89108a5 (patch)
tree42fe389db9882c630f4b7e2282c1ca9e550981c6 /usr
parent43754582b48fd73340450d541457773266db81cd (diff)
downloadpfsense-06d754d459022d776460e9dba897c30fe89108a5.zip
pfsense-06d754d459022d776460e9dba897c30fe89108a5.tar.gz
Correctly save dns servers
Ticket #426
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