Fix detection of get_ip caller

This was broken in f6f920eb39.
This commit is contained in:
Richard Hansen 2020-07-06 17:14:08 -04:00
parent 4eae0d39a9
commit 2e5db5af44

View file

@ -1987,7 +1987,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'} && ((caller(1))[3] // '') ne 'ddclient::get_ip')) {
$use_ssl = 1;
$default_port = '443';
} else {