diff --git a/backend/factory/config.go b/backend/factory/config.go index b86fa1b942f948fee02b9deb7dc6cb0aa1d41554..796314f76f6a84093046c7497e31dab8a63e0f44 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 b68e9871fe41d70ee0c431a6cf0d45c119473fe1..d0d9d5a3e48e6ebb97bf318e969b943be3b692ad 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 {