From 066b19af8f1aff6c3dc49f15add8df55dad0d7ba Mon Sep 17 00:00:00 2001 From: Richard Hansen Date: Tue, 14 May 2024 17:59:42 -0400 Subject: [PATCH] Error out if `--daemon` and `--retry` are both specified --- ddclient.in | 1 + 1 file changed, 1 insertion(+) diff --git a/ddclient.in b/ddclient.in index 9e4ed55..ecb7820 100755 --- a/ddclient.in +++ b/ddclient.in @@ -1903,6 +1903,7 @@ sub init_config { if (defined $opt{'host'} && defined $opt{'retry'}) { fatal("options --retry and --host (or --option host=..) are mutually exclusive"); } + fatal("options --retry and --daemon cannot be used together") if (opt('retry') && opt('daemon')); ## determine hosts to update (those on the cmd-line, config-file, or failed cached) my @hosts = keys %config;