Don't get host-specific values of global options

This commit is contained in:
Richard Hansen 2024-06-14 18:58:05 -04:00
parent 5d545aae5c
commit f3678ce119

View file

@ -2883,7 +2883,7 @@ sub get_ip {
} }
if ($url) { if ($url) {
$reply = geturl( $reply = geturl(
proxy => opt('proxy', $h), proxy => opt('proxy'),
url => $url, url => $url,
ssl_validate => opt('web-ssl-validate', $h), ssl_validate => opt('web-ssl-validate', $h),
); );
@ -3287,7 +3287,7 @@ sub get_ipv4 {
} }
if ($url) { if ($url) {
$reply = geturl( $reply = geturl(
proxy => opt('proxy', $h), proxy => opt('proxy'),
url => $url, url => $url,
ipversion => 4, # when using a URL to find IPv4 address we should force use of IPv4 ipversion => 4, # when using a URL to find IPv4 address we should force use of IPv4
ssl_validate => opt('web-ssl-validate', $h), ssl_validate => opt('web-ssl-validate', $h),