update docs.

This commit is contained in:
Miroslav Šedivý
2022-11-19 20:45:38 +01:00
parent e25e9c2b24
commit ac822a2531
4 changed files with 15 additions and 11 deletions

View File

@ -1,12 +1,13 @@
package config
import (
"m1k1o/neko/internal/utils"
"net/http"
"path"
"github.com/spf13/cobra"
"github.com/spf13/viper"
"m1k1o/neko/internal/utils"
)
type Server struct {

View File

@ -47,7 +47,7 @@ func (WebSocket) Init(cmd *cobra.Command) error {
// File transfer
cmd.PersistentFlags().Bool("file_transfer_enabled", true, "enable file transfer feature")
cmd.PersistentFlags().Bool("file_transfer_enabled", false, "enable file transfer feature")
if err := viper.BindPFlag("file_transfer_enabled", cmd.PersistentFlags().Lookup("file_transfer_enabled")); err != nil {
return err
}