mirror of
https://github.com/go-acme/lego.git
synced 2024-12-05 20:02:38 +02:00
Excluding DNS01 and TLSSNI01 challenges if --webroot is used
This commit is contained in:
parent
4116254e6c
commit
0886c37703
@ -61,6 +61,10 @@ func setup(c *cli.Context) (*Configuration, *Account, *acme.Client) {
|
||||
}
|
||||
|
||||
client.SetChallengeProvider(acme.HTTP01, provider)
|
||||
|
||||
// --webroot=foo indicates that the user specifically want to do a HTTP challenge
|
||||
// infer that the user also wants to exclude all other challenges
|
||||
client.ExcludeChallenges([]acme.Challenge{acme.DNS01, acme.TLSSNI01})
|
||||
}
|
||||
if c.GlobalIsSet("http") {
|
||||
if strings.Index(c.GlobalString("http"), ":") == -1 {
|
||||
|
Loading…
Reference in New Issue
Block a user