dnsmadeeasy: Honor http: or https: scheme in server variable

This commit is contained in:
Richard Hansen 2024-07-13 18:12:49 -04:00
parent 6fbb7eb3dc
commit 469c5a072e
2 changed files with 4 additions and 8 deletions

View file

@ -62,9 +62,9 @@ repository history](https://github.com/ddclient/ddclient/commits/master).
address changes. [#654](https://github.com/ddclient/ddclient/pull/654)
* `he.net`: Added support for updating Hurricane Electric records.
[#682](https://github.com/ddclient/ddclient/pull/682)
* `dyndns2`, `domeneshop`: The `server` option can now include `http://` or
`https://` to control the use of TLS. If omitted, the value of the `ssl`
option is used to determine the scheme.
* `dyndns2`, `domeneshop`, `dnsmadeeasy`: The `server` option can now include
`http://` or `https://` to control the use of TLS. If omitted, the value of
the `ssl` option is used to determine the scheme.
[#703](https://github.com/ddclient/ddclient/pull/703)
### Bug fixes

View file

@ -7025,11 +7025,7 @@ sub nic_dnsmadeeasy_update {
my $ip = delete $config{$h}{'wantip'};
info("Setting IP address to %s for %s", $ip, $h);
verbose("UPDATE:", "Updating %s", $h);
# Set the URL that we're going to to update
my $url;
$url = $globals{'ssl'} ? "https://" : "http://";
$url .= $config{$h}{'server'} . $config{$h}{'script'};
my $url = $config{$h}{'server'} . $config{$h}{'script'};
$url .= "?username=$config{$h}{'login'}";
$url .= "&password=$config{$h}{'password'}";
$url .= "&ip=$ip";