From 872523700b5964e7fa0a98070a2e9ac1d350bbe1 Mon Sep 17 00:00:00 2001 From: raul Date: Tue, 14 May 2024 09:27:23 +0200 Subject: [PATCH] Minor formatting changes --- cmd/server.go | 3 +++ cmd/serverFunc.go | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/cmd/server.go b/cmd/server.go index a83c38b..a2a4ffb 100644 --- a/cmd/server.go +++ b/cmd/server.go @@ -43,6 +43,7 @@ func setServerParameters(cmd *cobra.Command) error { if parameterPort != "" { listenPort = parameterPort } + parameterHistory, err := cmd.Flags().GetString("history") if err != nil { return err @@ -51,6 +52,7 @@ func setServerParameters(cmd *cobra.Command) error { logLocation = parameterHistory isLogging = true } + parPassword, err := cmd.Flags().GetString("password") if err != nil { return err @@ -58,6 +60,7 @@ func setServerParameters(cmd *cobra.Command) error { if parPassword != "" { password = parPassword } + insecure, err := cmd.Flags().GetBool("insecure") if insecure == true { servInsecure = true diff --git a/cmd/serverFunc.go b/cmd/serverFunc.go index 447b60c..75c569b 100644 --- a/cmd/serverFunc.go +++ b/cmd/serverFunc.go @@ -73,7 +73,7 @@ func Server() { var ln net.Listener var err error if servInsecure == true { - fmt.Println("[WARNING] Starting unencrypted server!") + fmt.Println("WARNING: Starting unencrypted server!") ln, err = startInsecureServer() } else { ln, err = startSecureServer()