dns/dyndns: customDns log error details & inject %Host% (#2393)

This commit is contained in:
Marc Collins
2021-11-04 09:10:12 +01:00
committed by GitHub
parent b9452963e8
commit 793419733a
2 changed files with 5 additions and 0 deletions
@@ -785,6 +785,7 @@ class updatedns
curl_setopt($ch, CURLOPT_USERPWD, "{$this->_dnsUser}:{$this->_dnsPass}");
}
$server = str_replace("%IP%", $this->_dnsIP, $this->_dnsUpdateURL);
$server = str_replace("%HOST%", $this->_dnsHost, $server);
curl_setopt($ch, CURLOPT_URL, $server);
break;
case 'cloudflare':
@@ -428,6 +428,8 @@ include("head.inc");
<?= gettext("This is the only field required by for Custom Dynamic DNS, and is only used by Custom Entries.") ?>
<br />
<?= gettext("If you need the new IP to be included in the request, put %IP% in its place.") ?>
<br />
<?= gettext("If you need the new host to be included in the request, put %HOST% in its place.") ?>
</div>
</td>
</tr>
@@ -442,6 +444,8 @@ include("head.inc");
<br />
<?= gettext("If you need the new IP to be included in the request, put %IP% in its place.") ?>
<br />
<?= gettext("If you need the new Host to be included in the request, put %HOST% in its place.") ?>
<br />
<?= gettext('If you need to include multiple possible values, separate them with a |. If your provider includes a |, escape it with \|') ?>
<br />
<?= gettext('Tabs (\t), newlines (\n) and carriage returns (\r) at the beginning or end of the returned results are removed before comparison.') ?>