From 1243dab368a6c8f1e2d65b948ac08aedc03d4e36 Mon Sep 17 00:00:00 2001 From: zackattack01 Date: Fri, 7 Jun 2024 13:11:54 -0400 Subject: [PATCH] fix kolideURL check --- cmd/launcher/svc_windows.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/launcher/svc_windows.go b/cmd/launcher/svc_windows.go index 6034cff66f..32049c2613 100644 --- a/cmd/launcher/svc_windows.go +++ b/cmd/launcher/svc_windows.go @@ -255,7 +255,7 @@ func (w *winSvc) Execute(args []string, r <-chan svc.ChangeRequest, changes chan func determineRootDirectory(opts *launcher.Options, slogger *slog.Logger) string { optsRootDirectory := opts.RootDirectory // don't mess with the path if this installation isn't pointing to a kolide server URL - if opts.ControlServerURL != "k2device.kolide.com" && opts.ControlServerURL != "k2device-preprod.kolide.com" { + if opts.KolideServerURL != "k2device.kolide.com" && opts.KolideServerURL != "k2device-preprod.kolide.com" { return optsRootDirectory }