summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Beaver <sbeaver@netgate.com>2015-11-28 10:21:48 -0500
committerStephen Beaver <sbeaver@netgate.com>2015-11-28 10:21:48 -0500
commit104660563333c5fa0a187fe8edb9c6667624f52b (patch)
tree19b2827f98af21e07ad8b5a4773c91d767d2d1e1
parent1e218f29455fcf83bb7a9d31eebce568b1eb4555 (diff)
parentd5a9e03015610ca1dded1d58ceec849201f0b90e (diff)
downloadpfsense-104660563333c5fa0a187fe8edb9c6667624f52b.zip
pfsense-104660563333c5fa0a187fe8edb9c6667624f52b.tar.gz
Merge pull request #2128 from NOYB/Services-DNS_Resolver-Listen_Port-Placeholder
-rw-r--r--src/usr/local/www/services_unbound.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/usr/local/www/services_unbound.php b/src/usr/local/www/services_unbound.php
index 6ab69ad..8b49343 100644
--- a/src/usr/local/www/services_unbound.php
+++ b/src/usr/local/www/services_unbound.php
@@ -176,6 +176,7 @@ if ($_POST) {
if (!$input_errors) {
$a_unboundcfg['enable'] = isset($pconfig['enable']);
+ $a_unboundcfg['port'] = $pconfig['port'];
$a_unboundcfg['dnssec'] = isset($pconfig['dnssec']);
$a_unboundcfg['forwarding'] = isset($pconfig['forwarding']);
$a_unboundcfg['regdhcp'] = isset($pconfig['regdhcp']);
@@ -272,8 +273,9 @@ $section->addInput(new Form_Checkbox(
$section->addInput(new Form_Input(
'port',
'Listen Port',
- 'text',
- $pconfig['port']
+ 'number',
+ $pconfig['port'],
+ ['placeholder' => '53']
))->setHelp('The port used for responding to DNS queries. It should normally be left blank unless another service needs to bind to TCP/UDP port 53.');
$activeiflist = build_if_list($pconfig['active_interface']);
OpenPOWER on IntegriCloud