From 6acbb7d2f19925dd015132f05b2f2f95839b6354 Mon Sep 17 00:00:00 2001 From: Daniel Becker Date: Thu, 11 Jul 2013 15:48:26 -0700 Subject: [PATCH] properly handle custom-v6 dyndns entries in web interface --- usr/local/www/services_dyndns_edit.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/usr/local/www/services_dyndns_edit.php b/usr/local/www/services_dyndns_edit.php index 75dde35553..9a8edc3751 100644 --- a/usr/local/www/services_dyndns_edit.php +++ b/usr/local/www/services_dyndns_edit.php @@ -91,7 +91,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"; @@ -130,7 +130,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']); @@ -172,6 +172,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 = '';