summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-08-31 16:29:21 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-08-31 16:29:21 +0000
commit94a9cf1a692767604b180f31b3bf13b152a60add (patch)
tree4842b7fac80ae1112644dbca1889f699abfcd685 /usr
parenta60a5619f3e4f88d11deacd1d66a48d90cd8ea8e (diff)
downloadpfsense-94a9cf1a692767604b180f31b3bf13b152a60add.zip
pfsense-94a9cf1a692767604b180f31b3bf13b152a60add.tar.gz
unset dns servers unconditionally.
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/services_dhcp.php10
1 files changed, 4 insertions, 6 deletions
diff --git a/usr/local/www/services_dhcp.php b/usr/local/www/services_dhcp.php
index 1c3fcbf..a582c0f 100755
--- a/usr/local/www/services_dhcp.php
+++ b/usr/local/www/services_dhcp.php
@@ -151,14 +151,12 @@ if ($_POST) {
if ($_POST['wins2'])
$config['dhcpd'][$if]['winsserver'][] = $_POST['wins2'];
- if ($_POST['dns1']) {
- unset($config['dhcpd'][$if]['dnsserver']);
+ unset($config['dhcpd'][$if]['dnsserver']);
+
+ if ($_POST['dns1'])
$config['dhcpd'][$if]['dnsserver'][] = $_POST['dns1'];
- }
- if ($_POST['dns2']) {
+ if ($_POST['dns2'])
$config['dhcpd'][$if]['dnsserver'][] = $_POST['dns2'];
- }
-
$config['dhcpd'][$if]['gateway'] = $_POST['gateway'];
OpenPOWER on IntegriCloud