mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
dns/dyndns: customDns log error details & inject %Host% (#2393)
This commit is contained in:
@@ -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.') ?>
|
||||
|
||||
Reference in New Issue
Block a user