From d458d3678d913b3a1968685025dadfdc838b2303 Mon Sep 17 00:00:00 2001 From: Lucas Bickel Date: Fri, 8 May 2020 09:55:00 +0200 Subject: [PATCH] fix: trailing newline in socket message We need a trailing newline in the socket message --- cmd/root.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/root.go b/cmd/root.go index aeb54d7..b13ba5a 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -72,7 +72,7 @@ func init() { rootCmd.PersistentFlags().StringVar(&pathfinderAuth, "pathfinder-auth", "Admin Admin", "Pathfinder user pass") rootCmd.PersistentFlags().BoolVar(&socket, "socket", false, "Enable socket writing") rootCmd.PersistentFlags().StringVar(&socketPath, "socket-path", "/var/run/klangbecken.sock", "Path to Klangbecken socket") - rootCmd.PersistentFlags().StringVar(&socketPattern, "socket-pattern", "klangbecken.onair %v", "Socket message format as fmt string") + rootCmd.PersistentFlags().StringVar(&socketPattern, "socket-pattern", "klangbecken.onair %v\n", "Socket message format as fmt string") } // initConfig reads in config file and ENV variables if set.