Set the default share backend to SMB for Linux

This commit is contained in:
AlexSSD7 2023-09-27 15:03:16 +01:00
commit 4d504f70d1

View file

@ -147,12 +147,10 @@ func init() {
var defaultShareType string
switch {
case osspecifics.IsWindows():
defaultShareType = "smb"
case osspecifics.IsMacOS():
defaultShareType = "afp"
default:
defaultShareType = "ftp"
defaultShareType = "smb"
}
runCmd.Flags().StringVar(&shareBackendFlag, "share-backend", defaultShareType, `Specifies the file share backend to use. The default value is OS-specific. (available "smb", "afp", "ftp")`)