Merge pull request #593 from TinfoilSubmarine/fix/ipversion
Note: This branch has been locally rebased before merging!
This commit is contained in:
commit
eec72794fd
1 changed files with 8 additions and 2 deletions
10
ddclient.in
10
ddclient.in
|
@ -2603,7 +2603,9 @@ sub geturl {
|
|||
debug("server = %s", $server);
|
||||
(my $_url = $url) =~ s%\?.*%?<redacted>%; #redact possible credentials
|
||||
debug("url = %s", $_url);
|
||||
debug("ip ver = %s", $ipversion);
|
||||
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
|
||||
warning("curl cannot connect to %s://%s using IPv%s",${protocol},${server},$ipversion);
|
||||
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});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue