1
0
mirror of https://github.com/rclone/rclone.git synced 2025-12-06 00:03:32 +00:00

fs: allow setting of --http_proxy from command line

This in turn allows `override.http_proxy` to be set in backend configs
to set an http proxy for a single backend.
This commit is contained in:
Nick Craig-Wood
2025-07-02 17:20:58 +01:00
parent c49b24ff90
commit 6a9c221841
4 changed files with 39 additions and 1 deletions

View File

@@ -555,6 +555,11 @@ var ConfigOptionsInfo = Options{{
Default: []string{},
Help: "Transform paths during the copy process.",
Groups: "Copy",
}, {
Name: "http_proxy",
Default: "",
Help: "HTTP proxy URL.",
Groups: "Networking",
}}
// ConfigInfo is filesystem config options
@@ -667,6 +672,7 @@ type ConfigInfo struct {
MetadataMapper SpaceSepList `config:"metadata_mapper"`
MaxConnections int `config:"max_connections"`
NameTransform []string `config:"name_transform"`
HTTPProxy string `config:"http_proxy"`
}
func init() {