From 4d504f70d1206c92415fb0506aca6ad97b3a6c69 Mon Sep 17 00:00:00 2001 From: AlexSSD7 Date: Wed, 27 Sep 2023 15:03:16 +0100 Subject: [PATCH] Set the default share backend to SMB for Linux --- cmd/run.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cmd/run.go b/cmd/run.go index f73a99b..cfc95cb 100644 --- a/cmd/run.go +++ b/cmd/run.go @@ -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")`)