From 269604ec7540aac2db71cfecde8de2c6f4068b1a Mon Sep 17 00:00:00 2001 From: Gabe Kangas Date: Mon, 28 Nov 2022 21:59:39 -0800 Subject: [PATCH] Return non-fatal error if no stream keys are set --- core/data/config.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/data/config.go b/core/data/config.go index b77d1756c..da2d9238c 100644 --- a/core/data/config.go +++ b/core/data/config.go @@ -578,8 +578,8 @@ func GetVideoCodec() string { // VerifySettings will perform a sanity check for specific settings values. func VerifySettings() error { - if len(GetStreamKeys()) == 0 { - return errors.New("no stream key set. Please set one via the admin or command line arguments") + if len(GetStreamKeys()) == 0 && config.TemporaryStreamKey == "" { + log.Errorln("No stream key set. Streaming is disabled. Please set one via the admin or command line arguments") } if GetAdminPassword() == "" {