From 167772b87698cce479090dbe5bd3d1cc7c1bc808 Mon Sep 17 00:00:00 2001 From: xengineering Date: Sat, 20 Dec 2025 14:20:42 +0100 Subject: Implement passing user configuration This allows overwriting values of the default configuration with custom ones. --- main.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'main.go') diff --git a/main.go b/main.go index 128720f..f06d525 100644 --- a/main.go +++ b/main.go @@ -11,7 +11,10 @@ func main() { log.Println("+++ Started Sia server +++") defer log.Println("--- Stopped Sia server ---") - config := GetStartupConfig() + flags := Flags{} + flags.FromArgs() + + config := GetStartupConfig(flags.ConfigPath) tx := make(chan MQTTMessage) -- cgit v1.2.3-70-g09d2