forked from TrueCloudLab/lego
fix: cli disable-cp option. (#868)
This commit is contained in:
parent
29c63545ce
commit
985f3f8b7b
1 changed files with 1 additions and 1 deletions
|
@ -107,7 +107,7 @@ func setupDNS(ctx *cli.Context, client *lego.Client) {
|
||||||
err = client.Challenge.SetDNS01Provider(provider,
|
err = client.Challenge.SetDNS01Provider(provider,
|
||||||
dns01.CondOption(len(servers) > 0,
|
dns01.CondOption(len(servers) > 0,
|
||||||
dns01.AddRecursiveNameservers(dns01.ParseNameservers(ctx.GlobalStringSlice("dns.resolvers")))),
|
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.DisableCompletePropagationRequirement()),
|
||||||
dns01.CondOption(ctx.GlobalIsSet("dns-timeout"),
|
dns01.CondOption(ctx.GlobalIsSet("dns-timeout"),
|
||||||
dns01.AddDNSTimeout(time.Duration(ctx.GlobalInt("dns-timeout"))*time.Second)),
|
dns01.AddDNSTimeout(time.Duration(ctx.GlobalInt("dns-timeout"))*time.Second)),
|
||||||
|
|
Loading…
Reference in a new issue