Minor formatting changes
This commit is contained in:
parent
7493af68fc
commit
872523700b
|
@ -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
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue