mirror of
https://github.com/rclone/rclone.git
synced 2025-02-27 10:41:28 +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
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if mountOpt.Daemon {
|
||||||
|
return nil, errors.New("Daemon Option not supported over the API")
|
||||||
|
}
|
||||||
|
|
||||||
mountType, err := in.GetString("mountType")
|
mountType, err := in.GetString("mountType")
|
||||||
|
|
||||||
mountMu.Lock()
|
mountMu.Lock()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user