forked from TrueCloudLab/lego
Excluding DNS01 and TLSSNI01 challenges if --webroot is used
This commit is contained in:
parent
4116254e6c
commit
0886c37703
1 changed files with 4 additions and 0 deletions
|
@ -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 a new issue