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

or fall back to the value of the `ssl` variable if neither `http:` nor
`https:` is present.
This commit is contained in:
Richard Hansen 2024-07-13 18:13:45 -04:00
parent 469c5a072e
commit 0ed2970852
2 changed files with 4 additions and 7 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`, `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.
* `dyndns2`, `domeneshop`, `dnsmadeeasy`, `keysystems`: 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

@ -7654,10 +7654,7 @@ sub nic_keysystems_update {
for my $h (@_) {
my $ip = delete $config{$h}{'wantip'};
info("KEYSYSTEMS setting IP address to %s for %s", $ip, $h);
my $url = "http://$config{$h}{'server'}/update.php?hostname=$h&password=$config{$h}{'password'}&ip=$ip";
# Try to get URL
my $url = "$config{$h}{'server'}/update.php?hostname=$h&password=$config{$h}{'password'}&ip=$ip";
my $reply = geturl(proxy => opt('proxy'), url => $url) // '';
# No response, declare as failed