From 8c3d2f3bc5e24104405ba937a72e3fc80437cffc Mon Sep 17 00:00:00 2001 From: Marcus B Spencer Date: Fri, 9 May 2025 05:49:11 -0500 Subject: [PATCH] fix(config): mark audit log options as needing restart (fixes #10099) (#10100) ### Testing Change the `auditEnabled` option and you should get a prompt in the Web GUI. Restart and change the `auditFile` option, and you should get that same prompt. The prompt you should get is shown in the screenshots below. ### Screenshots ![Screenshot_20250507_122546](https://github.com/user-attachments/assets/23ce7c42-5e60-4f88-ac58-f312a9a1f5cc) Co-authored-by: Jakob Borg --- lib/config/optionsconfiguration.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/config/optionsconfiguration.go b/lib/config/optionsconfiguration.go index 353a9305b..636c6be81 100644 --- a/lib/config/optionsconfiguration.go +++ b/lib/config/optionsconfiguration.go @@ -68,8 +68,8 @@ type OptionsConfiguration struct { AnnounceLANAddresses bool `json:"announceLANAddresses" xml:"announceLANAddresses" default:"true"` SendFullIndexOnUpgrade bool `json:"sendFullIndexOnUpgrade" xml:"sendFullIndexOnUpgrade"` FeatureFlags []string `json:"featureFlags" xml:"featureFlag"` - AuditEnabled bool `json:"auditEnabled" xml:"auditEnabled" default:"false"` - AuditFile string `json:"auditFile" xml:"auditFile"` + AuditEnabled bool `json:"auditEnabled" xml:"auditEnabled" default:"false" restart:"true"` + AuditFile string `json:"auditFile" xml:"auditFile" restart:"true"` // The number of connections at which we stop trying to connect to more // devices, zero meaning no limit. Does not affect incoming connections. ConnectionLimitEnough int `json:"connectionLimitEnough" xml:"connectionLimitEnough"`