Change answer variable to api domains

This commit is contained in:
Melon 2023-07-07 16:39:41 +01:00
parent cebad8224c
commit d648555af1
Signed by: melon
GPG Key ID: 6C9D970C50D26A25

View File

@ -57,7 +57,7 @@ func (s *setupCmd) Execute(ctx context.Context, f *flag.FlagSet, args ...interfa
var answers struct {
ApiListen string
FirstDomains string
ApiDomains string
AcmeRefresh string
AcmePresentUrl string
AcmeCleanUpUrl string
@ -154,7 +154,7 @@ func (s *setupCmd) Execute(ctx context.Context, f *flag.FlagSet, args ...interfa
Directory: "production",
Certificate: "default",
},
Domains: strings.Split(answers.FirstDomains, ","),
Domains: strings.Split(answers.ApiDomains, ","),
})
if err != nil {
fmt.Println("[Orchid] Failed to write config file: ", err)