dns/dyndns: new version and whitespace swep

This commit is contained in:
Franco Fichtner
2020-08-24 14:16:31 +02:00
parent 5b91487ec2
commit 3ee618ecdf
3 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
PLUGIN_NAME= dyndns
PLUGIN_VERSION= 1.22
PLUGIN_VERSION= 1.23
PLUGIN_COMMENT= Dynamic DNS Support
PLUGIN_MAINTAINER= franco@opnsense.org
@@ -676,8 +676,8 @@ class updatedns
/*
* https://github.com/vizion8-dan
* Tested on OPNsense 20.1.8_1-amd64 - IPv4 (A)
* dnsHost ("Hostname" field in OPNsense) should be the 2nd-level domain ("example.org")
* dnsUser ("Username" field in OPNsense) should be the subdomain / A-record ("myrecord" in 2nd-level domain)
* dnsHost ("Hostname" field in OPNsense) should be the 2nd-level domain ("example.org")
* dnsUser ("Username" field in OPNsense) should be the subdomain / A-record ("myrecord" in 2nd-level domain)
* dnsPass should be the Gandi-API key
*/
$server = "https://dns.api.gandi.net/api/v5/domains/". $this->_dnsHost . "/records/" . $this->_dnsUser . "/A";
@@ -1453,7 +1453,7 @@ class updatedns
case 'gandi-livedns':
$http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
if ($http_code == 401) {
$status = 'Dynamic DNS: (Error) Bad authentication attempt because of a wrong API Key.';
$status = 'Dynamic DNS: (Error) Bad authentication attempt because of a wrong API Key.';
} elseif ($http_code == 403) {
$status = 'Dynamic DNS: (Error) Access to the resource is denied. Mainly due to a lack of permissions to access it!';
} elseif ($http_code == 201) {
+1 -1
View File
@@ -318,7 +318,7 @@ include("head.inc");
<div class="hidden" data-for="help_for_host">
<?= gettext("Enter the complete host/domain name. example: myhost.dyndns.org") ?><br />
<?= gettext("For he.net tunnelbroker, enter your tunnel ID") ?><br />
<?= gettext('Gandi LiveDNS: Enter the 2nd-level domain ("example.org").') ?>
<?= gettext('Gandi LiveDNS: Enter the 2nd-level domain ("example.org").') ?>
</div>
</td>
</tr>