From fdc05d2942ec613a3ea588d69bfc65fbc0dade55 Mon Sep 17 00:00:00 2001 From: Will Glynn Date: Thu, 11 Feb 2016 19:47:47 -0600 Subject: [PATCH] --dns=foo means we specifically intend to fulfill a DNS challenge --- cli_handlers.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cli_handlers.go b/cli_handlers.go index 42e3fece..fb7e54bb 100644 --- a/cli_handlers.go +++ b/cli_handlers.go @@ -83,6 +83,10 @@ func setup(c *cli.Context) (*Configuration, *Account, *acme.Client) { } client.SetChallengeProvider(acme.DNS01, provider) + + // --dns=foo indicates that the user specifically want to do a DNS challenge + // infer that the user also wants to exclude all other challenges + client.ExcludeChallenges([]acme.Challenge{acme.HTTP01, acme.TLSSNI01}) } return conf, acc, client