From f47d82ef8f9e6e91664ff06179e2c3d6fff04d7e Mon Sep 17 00:00:00 2001 From: newb1er <taiwanmichael429@gmail.com> Date: Mon, 11 Mar 2024 18:45:46 +0800 Subject: [PATCH] fix: typo --- backend/factory/config.go | 2 +- backend/webui_service/webui_init.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/factory/config.go b/backend/factory/config.go index b86fa1b..796314f 100644 --- a/backend/factory/config.go +++ b/backend/factory/config.go @@ -64,7 +64,7 @@ type Tls struct { } type BillingServer struct { - Enabled bool `yaml:"enabled" valid:"type(bool), default(true)"` + Enable bool `yaml:"enable" valid:"type(bool), default(true)"` HostIPv4 string `yaml:"hostIPv4,omitempty" valid:"required,host"` Port int `yaml:"port,omitempty" valid:"optional,port"` ListenPort int `yaml:"listenPort,omitempty" valid:"required,port"` diff --git a/backend/webui_service/webui_init.go b/backend/webui_service/webui_init.go index b68e987..d0d9d5a 100644 --- a/backend/webui_service/webui_init.go +++ b/backend/webui_service/webui_init.go @@ -110,7 +110,7 @@ func (a *WebuiApp) Start(tlsKeyLogPath string) { wg := sync.WaitGroup{} - if billingServer.Enabled { + if billingServer.Enable { wg.Add(1) self.BillingServer = billing.OpenServer(&wg) if self.BillingServer == nil { -- GitLab