From 9ac0a4cd9f72aa8eb85b18c13ddb8bdd9a2e1579 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Mon, 7 Mar 2016 03:42:13 +0100 Subject: Keep it short --- cmd/acme/config.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'cmd') 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) { -- cgit v1.2.3