mirror of
https://github.com/rclone/rclone.git
synced 2026-09-13 14:49:29 -04:00
serve: update serve remote control to use ParseOptions
This refactors all 8 serve protocols to use `rc.ParseOptions` for VFS and protocol options decoding. It also implements parameter validation in the main runner using `rc.CheckParamsUsed`. - Update dlna, ftp, http, nfs, restic, s3, sftp, and webdav to call rc.ParseOptions, enabling nested option block support. - Remove unused configstruct imports. - Update startRc in cmd/serve/rc.go to copy input parameters and call rc.CheckParamsUsed to reject unknown parameters. - Add TestRcStartFlatNestedAndUnknownRejection to cmd/serve/rc_test.go. - Update inline documentation in serve/start command help to include nested blocks information (vfsOpt, proxyOpt, opt) and a new WebDAV example.
This commit is contained in:
500 Internal Server Error
Gitea Version: 1.28.0+dev-477-g8b6ad49a5f