mirror of
https://github.com/rclone/rclone.git
synced 2024-11-29 03:48:27 +08:00
rc: validate Daemon option is not set when mounting a volume via RC - fixes #6469
This commit is contained in:
parent
cf0bf159ab
commit
3f804224f4
|
@ -97,6 +97,10 @@ func mountRc(ctx context.Context, in rc.Params) (out rc.Params, err error) {
|
|||
return nil, err
|
||||
}
|
||||
|
||||
if mountOpt.Daemon {
|
||||
return nil, errors.New("Daemon Option not supported over the API")
|
||||
}
|
||||
|
||||
mountType, err := in.GetString("mountType")
|
||||
|
||||
mountMu.Lock()
|
||||
|
|
Loading…
Reference in New Issue
Block a user