forked from TrueCloudLab/lego
--dns=foo means we specifically intend to fulfill a DNS challenge
This commit is contained in:
parent
48cf387dd5
commit
fdc05d2942
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue