Merge pull request #593 from TinfoilSubmarine/fix/ipversion

Note: This branch has been locally rebased before merging!
This commit is contained in:
Lenard Hess 2023-11-25 13:16:50 +01:00
commit eec72794fd

View file

@ -2603,7 +2603,9 @@ sub geturl {
debug("server = %s", $server);
(my $_url = $url) =~ s%\?.*%?<redacted>%; #redact possible credentials
debug("url = %s", $_url);
if ($ipversion != 0) {
debug("ip ver = %s", $ipversion);
}
if (!opt('exec')) {
debug("skipped network connection");
@ -2641,7 +2643,11 @@ sub geturl {
verbose("RECEIVE:", "%s", $reply // "<undefined>");
if (!$reply) {
# don't include ${url} as that might expose login credentials
if ($ipversion != 0) {
warning("curl cannot connect to %s://%s using IPv%s",${protocol},${server},$ipversion);
} else {
warning("curl cannot connect to %s://%s",${protocol},${server});
}
}
}