mirror of
https://github.com/usual2970/certimate.git
synced 2025-06-08 21:49:52 +00:00
fix: adjust the string conversion syntax
This commit is contained in:
parent
64b7ed00f5
commit
699385a8c4
@ -8,6 +8,7 @@ import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"os"
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
"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.
|
||||
disableFCNAME := "false"
|
||||
if option.DisableFollowCNAME {
|
||||
disableFCNAME = "true"
|
||||
}
|
||||
// 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{
|
||||
Email: option.Email,
|
||||
|
Loading…
x
Reference in New Issue
Block a user