From 985f3f8b7bf5bae4eafbfe5f773ec0e4729f4a30 Mon Sep 17 00:00:00 2001 From: Ludovic Fernandez Date: Fri, 3 May 2019 17:56:38 +0200 Subject: [PATCH] fix: cli disable-cp option. (#868) --- cmd/setup_challenges.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/setup_challenges.go b/cmd/setup_challenges.go index 3d291939..3c023890 100644 --- a/cmd/setup_challenges.go +++ b/cmd/setup_challenges.go @@ -107,7 +107,7 @@ func setupDNS(ctx *cli.Context, client *lego.Client) { err = client.Challenge.SetDNS01Provider(provider, dns01.CondOption(len(servers) > 0, dns01.AddRecursiveNameservers(dns01.ParseNameservers(ctx.GlobalStringSlice("dns.resolvers")))), - dns01.CondOption(ctx.GlobalIsSet("dns.disable-cp"), + dns01.CondOption(ctx.GlobalBool("dns.disable-cp"), dns01.DisableCompletePropagationRequirement()), dns01.CondOption(ctx.GlobalIsSet("dns-timeout"), dns01.AddDNSTimeout(time.Duration(ctx.GlobalInt("dns-timeout"))*time.Second)),