Merge pull request #241 from rhansen/get_ip-ssl
Fix detection of `get_ip` caller
This commit is contained in:
commit
4670955cb6
2 changed files with 5 additions and 2 deletions
|
@ -28,6 +28,7 @@ repository history](https://github.com/ddclient/ddclient/commits/master).
|
|||
* Fixed a regression introduced in v3.9.0 that caused
|
||||
`use=ip,ip=<ipv4-address>` to fail.
|
||||
* "true" is now accepted as a boolean value.
|
||||
* The `ssl` option now applies to the `web` URL.
|
||||
|
||||
### Compatibility and dependency changes
|
||||
|
||||
|
|
|
@ -1986,8 +1986,7 @@ sub geturl {
|
|||
|
||||
opt('fw') && debug("opt(fw = %s)", opt('fw'));
|
||||
$globals{'fw'} && debug("glo fw = %s", $globals{'fw'});
|
||||
## always omit SSL for connections to local router
|
||||
if ($force_ssl || ($globals{'ssl'} && ((caller(1))[3] // '') ne 'main::get_ip')) {
|
||||
if ($force_ssl || ($globals{'ssl'} && !($params->{ignore_ssl_option} // 0))) {
|
||||
$use_ssl = 1;
|
||||
$default_port = '443';
|
||||
} else {
|
||||
|
@ -2188,6 +2187,7 @@ sub get_ip {
|
|||
url => $url,
|
||||
login => opt('fw-login', $h),
|
||||
password => opt('fw-password', $h),
|
||||
ignore_ssl_option => 1,
|
||||
}) || '';
|
||||
$arg = $url;
|
||||
|
||||
|
@ -2209,6 +2209,7 @@ sub get_ip {
|
|||
url => $url,
|
||||
login => opt('fw-login', $h),
|
||||
password => opt('fw-password', $h),
|
||||
ignore_ssl_option => 1,
|
||||
}) || '';
|
||||
$arg = $url;
|
||||
|
||||
|
@ -2227,6 +2228,7 @@ sub get_ip {
|
|||
url => $url,
|
||||
login => opt('fw-login', $h),
|
||||
password => opt('fw-password', $h),
|
||||
ignore_ssl_option => 1,
|
||||
}) || '';
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue