From c31668b41379a39e7d7f86d9e1c52ce86b7775cd Mon Sep 17 00:00:00 2001 From: Richard Hansen Date: Sat, 13 Jul 2024 18:08:53 -0400 Subject: [PATCH] dyndns2: Honor `http:` or `https:` scheme in `server` variable or fall back to the value of the `ssl` variable if no `http:` or `https:` scheme is present. --- ChangeLog.md | 4 ++++ ddclient.in | 3 +-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ChangeLog.md b/ChangeLog.md index 4f4c23e..fe98389 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -62,6 +62,10 @@ 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`: 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 diff --git a/ddclient.in b/ddclient.in index 1d11b79..89f40f7 100755 --- a/ddclient.in +++ b/ddclient.in @@ -4072,8 +4072,7 @@ sub nic_dyndns2_update { info("setting IPv4 address to %s for %s", $ipv4, $hosts) if $ipv4; info("setting IPv6 address to %s for %s", $ipv6, $hosts) if $ipv6; verbose("UPDATE:", "updating %s", $hosts); - ## Select the DynDNS system to update - my $url = "http://$groupcfg{'server'}$groupcfg{'script'}?system="; + my $url = "$groupcfg{'server'}$groupcfg{'script'}?system="; if ($groupcfg{'custom'}) { warning("updating %s: 'custom' and 'static' may not be used together. ('static' ignored)", $hosts) if $groupcfg{'static'};