From 8d8b6f2b35b5778719126aaaa6a800f9b4bacec1 Mon Sep 17 00:00:00 2001 From: chaoqing Date: Tue, 24 Aug 2021 20:40:03 +0800 Subject: [PATCH] disable rclone bind function except Linux for now; --- pkg/conf/conf.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkg/conf/conf.go b/pkg/conf/conf.go index 1a990d9..1b311ee 100644 --- a/pkg/conf/conf.go +++ b/pkg/conf/conf.go @@ -7,6 +7,7 @@ import ( "github.com/spf13/afero/rclonefs" "gopkg.in/go-playground/validator.v9" "path/filepath" + "runtime" "strings" ) @@ -181,6 +182,11 @@ func mapSection(section string, confStruct interface{}) error { func initRCloneBind(){ + if runtime.GOOS != "linux"{ + util.Log().Warning("RClone Bind Unsupported OS %s until tested", runtime.GOOS) + return + } + if RCloneConfig.Binds[0] == "UNSET"{ return }