mirror of
https://github.com/usual2970/certimate.git
synced 2025-06-08 13:39:53 +00:00
fix: adjust the string conversion syntax
This commit is contained in:
parent
64b7ed00f5
commit
699385a8c4
@ -8,6 +8,7 @@ import (
|
|||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/usual2970/certimate/internal/domain"
|
"github.com/usual2970/certimate/internal/domain"
|
||||||
@ -181,12 +182,8 @@ func apply(option *ApplyOption, provider challenge.Provider) (*Certificate, erro
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Some unified lego environment variables are configured here.
|
// Some unified lego environment variables are configured here.
|
||||||
disableFCNAME := "false"
|
|
||||||
if option.DisableFollowCNAME {
|
|
||||||
disableFCNAME = "true"
|
|
||||||
}
|
|
||||||
// link: https://github.com/go-acme/lego/issues/1867
|
// link: https://github.com/go-acme/lego/issues/1867
|
||||||
os.Setenv("LEGO_DISABLE_CNAME_SUPPORT", disableFCNAME)
|
os.Setenv("LEGO_DISABLE_CNAME_SUPPORT", strconv.FormatBool(option.DisableFollowCNAME))
|
||||||
|
|
||||||
myUser := ApplyUser{
|
myUser := ApplyUser{
|
||||||
Email: option.Email,
|
Email: option.Email,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user