disable rclone bind function except Linux for now;

pull/984/head
chaoqing 4 years ago
parent af17e661df
commit 8d8b6f2b35

@ -7,6 +7,7 @@ import (
"github.com/spf13/afero/rclonefs" "github.com/spf13/afero/rclonefs"
"gopkg.in/go-playground/validator.v9" "gopkg.in/go-playground/validator.v9"
"path/filepath" "path/filepath"
"runtime"
"strings" "strings"
) )
@ -181,6 +182,11 @@ func mapSection(section string, confStruct interface{}) error {
func initRCloneBind(){ func initRCloneBind(){
if runtime.GOOS != "linux"{
util.Log().Warning("RClone Bind Unsupported OS %s until tested", runtime.GOOS)
return
}
if RCloneConfig.Binds[0] == "UNSET"{ if RCloneConfig.Binds[0] == "UNSET"{
return return
} }

Loading…
Cancel
Save