aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cmd/acme/config.go7
1 files changed, 3 insertions, 4 deletions
diff --git a/cmd/acme/config.go b/cmd/acme/config.go
index 016df29..39259fd 100644
--- a/cmd/acme/config.go
+++ b/cmd/acme/config.go
@@ -91,6 +91,9 @@ func LoadConfig(fname string) (*Config, error) {
if c.KeySize == 0 {
c.KeySize = defKeySize
}
+
+ replace := func(s string) string { return strings.Replace(s, ".", "_", -1) }
+
for i, pro := range c.Provider {
if pro.Directory == "" {
pro.Directory = acme.LE1
@@ -137,10 +140,6 @@ func LoadConfig(fname string) (*Config, error) {
return c, nil
}
-func replace(s string) string {
- return strings.Replace(s, ".", "_", -1)
-}
-
func checkWWW(altnames []string) []string {
ch := make(chan string)
go func(ch chan string, s []string) {