aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2016-03-07 03:42:13 +0100
committerDimitri Sokolyuk <demon@dim13.org>2016-03-07 03:42:13 +0100
commit9ac0a4cd9f72aa8eb85b18c13ddb8bdd9a2e1579 (patch)
tree385707b1bfc07f65576f839ee83039876aedd3c5 /cmd
parent3240e105be7ea1a2d3012674e7a694dcafafc237 (diff)
Keep it short
Diffstat (limited to 'cmd')
-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) {