aboutsummaryrefslogtreecommitdiff
path: root/cmd/acme/config.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/acme/config.go')
-rw-r--r--cmd/acme/config.go22
1 files changed, 11 insertions, 11 deletions
diff --git a/cmd/acme/config.go b/cmd/acme/config.go
index be830fd..7421229 100644
--- a/cmd/acme/config.go
+++ b/cmd/acme/config.go
@@ -39,10 +39,10 @@ type account struct {
Phone string
KeySize int
KeyFile string
- Desire []desire
+ Domain []domain
}
-type desire struct {
+type domain struct {
Altnames []string
KeySize int
KeyFile string
@@ -112,22 +112,22 @@ func LoadConfig(fname string) (*Config, error) {
acc.KeyFile = path.Join(c.BaseDir, acc.KeyFile)
}
pro.Account[i] = acc
- for i, des := range acc.Desire {
- if des.KeySize == 0 {
- des.KeySize = c.KeySize
+ for i, dom := range acc.Domain {
+ if dom.KeySize == 0 {
+ dom.KeySize = c.KeySize
}
- if des.KeyFile == "" {
+ if dom.KeyFile == "" {
return nil, errNoKey
}
- if des.CrtFile == "" {
+ if dom.CrtFile == "" {
return nil, errNoCrt
}
if c.BaseDir != "" {
- des.KeyFile = path.Join(c.BaseDir, des.KeyFile)
- des.CrtFile = path.Join(c.BaseDir, des.CrtFile)
+ dom.KeyFile = path.Join(c.BaseDir, dom.KeyFile)
+ dom.CrtFile = path.Join(c.BaseDir, dom.CrtFile)
}
- des.Altnames = checkWWW(des.Altnames)
- acc.Desire[i] = des
+ dom.Altnames = checkWWW(dom.Altnames)
+ acc.Domain[i] = dom
}
}
}