diff --git a/ChangeLog.md b/ChangeLog.md index 39f6d335..1a24aadb 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -19,6 +19,7 @@ repository history](https://github.com/ddclient/ddclient/commits/master). * Added support for moving secrets out of the configuration through environment variables * Extended postscript mechanism * sample-get-ip-from-fritzbox: Added environment variable to override hostname + * Warn about hosts where no IP could be determined - and skip the (bogus) update. ### Provider updates: * Added regfish diff --git a/ddclient.in b/ddclient.in index 65076d26..2cb24c2f 100755 --- a/ddclient.in +++ b/ddclient.in @@ -1328,6 +1328,12 @@ sub update_nics { # But we will set 'wantip' to the IPv4 so old functions continue to work until we update them all $config{$h}{'wantip'} = $ipv4 if (!$ip && $ipv4); + if (!$ip && !$ipv4 && !$ipv6) + { + warning("Could not determine an IP for %s", $h); + next; + } + next if !nic_updateable($h, $updateable); push @hosts, $h;