summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Becker <razzfazz@gmail.com>2013-07-11 15:48:26 -0700
committerDaniel Becker <razzfazz@gmail.com>2013-07-11 15:48:26 -0700
commite4a62f32c85b21d31c31af9aa1d051d6b2d56cd9 (patch)
tree9e6ab36f678ba897499922fe442ecf897f05376a
parente09b941d286ca4705b58e33601b00b2e435540ba (diff)
downloadpfsense-e4a62f32c85b21d31c31af9aa1d051d6b2d56cd9.zip
pfsense-e4a62f32c85b21d31c31af9aa1d051d6b2d56cd9.tar.gz
properly handle custom-v6 dyndns entries in web interface
-rw-r--r--usr/local/www/services_dyndns_edit.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr/local/www/services_dyndns_edit.php b/usr/local/www/services_dyndns_edit.php
index f48cb90..d53dcf9 100644
--- a/usr/local/www/services_dyndns_edit.php
+++ b/usr/local/www/services_dyndns_edit.php
@@ -93,7 +93,7 @@ if ($_POST) {
$reqdfieldsn = array();
$reqdfields = array("type");
$reqdfieldsn = array(gettext("Service type"));
- if ($pconfig['type'] != "custom") {
+ if ($pconfig['type'] != "custom" && $pconfig['type'] != "custom-v6") {
$reqdfields[] = "host";
$reqdfieldsn[] = gettext("Hostname");
$reqdfields[] = "password";
@@ -134,7 +134,7 @@ if ($_POST) {
$dyndns['updateurl'] = $_POST['updateurl'];
// Trim hard-to-type but sometimes returned characters
$dyndns['resultmatch'] = trim($_POST['resultmatch'], "\t\n\r");
- $dyndns['type'] == "custom" ? $dyndns['requestif'] = $_POST['requestif'] : $dyndns['requestif'] = $_POST['interface'];
+ ($dyndns['type'] == "custom" || $dyndns['type'] == "custom-v6") ? $dyndns['requestif'] = $_POST['requestif'] : $dyndns['requestif'] = $_POST['interface'];
$dyndns['descr'] = $_POST['descr'];
$dyndns['force'] = isset($_POST['force']);
@@ -176,6 +176,7 @@ include("head.inc");
function _onTypeChange(type){
switch(type) {
case "custom":
+ case "custom-v6":
document.getElementById("_resulttr").style.display = '';
document.getElementById("_urltr").style.display = '';
document.getElementById("_requestiftr").style.display = '';
OpenPOWER on IntegriCloud