Security Update #6

Merged
raul merged 25 commits from testing into main 2024-05-17 08:00:14 +02:00
2 changed files with 4 additions and 1 deletions
Showing only changes of commit 872523700b - Show all commits

View File

@ -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

View File

@ -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()