--dns=foo means we specifically intend to fulfill a DNS challenge

This commit is contained in:
Will Glynn 2016-02-11 19:47:47 -06:00
parent 48cf387dd5
commit fdc05d2942

View file

@ -83,6 +83,10 @@ func setup(c *cli.Context) (*Configuration, *Account, *acme.Client) {
} }
client.SetChallengeProvider(acme.DNS01, provider) 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 return conf, acc, client