mirror of
https://github.com/m1k1o/neko.git
synced 2025-05-24 22:47:06 +02:00
filepath clean.
This commit is contained in:
parent
76b44b949c
commit
cdb9b185f2
4 changed files with 40 additions and 26 deletions
|
@ -1,6 +1,8 @@
|
|||
package config
|
||||
|
||||
import (
|
||||
"path/filepath"
|
||||
|
||||
"github.com/spf13/cobra"
|
||||
"github.com/spf13/viper"
|
||||
)
|
||||
|
@ -73,4 +75,5 @@ func (s *WebSocket) Set() {
|
|||
s.FileTransfer = viper.GetBool("file_transfer")
|
||||
s.UnprivFileTransfer = viper.GetBool("unpriv_file_transfer")
|
||||
s.FileTransferPath = viper.GetString("file_transfer_path")
|
||||
s.FileTransferPath = filepath.Clean(s.FileTransferPath)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue