mirror of
https://github.com/go-acme/lego.git
synced 2025-01-24 22:33:01 +02:00
--dns=foo means we specifically intend to fulfill a DNS challenge
This commit is contained in:
parent
48cf387dd5
commit
fdc05d2942
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user