Skip to content

Commit 1b8dc0b

Browse files
Support path proxy mode in multifile command, too. (#294)
1 parent 5eacac7 commit 1b8dc0b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

cmd/multifile/multifile.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ func multifileExecute(ctx context.Context, manifest pget.Manifest) error {
142142
downloadOpts.SliceSize = 500 * humanize.MiByte
143143
downloadOpts.CacheableURIPrefixes = config.CacheableURIPrefixes()
144144
downloadOpts.ForceCachePrefixRewrite = viper.GetBool(config.OptForceCachePrefixRewrite)
145+
downloadOpts.CacheUsePathProxy = viper.GetBool(config.OptCacheUsePathProxy)
145146
if downloadOpts.CacheHosts, err = cli.LookupCacheHosts(srvName); err != nil {
146147
return err
147148
}
@@ -153,6 +154,7 @@ func multifileExecute(ctx context.Context, manifest pget.Manifest) error {
153154
downloadOpts.CacheHosts = []string{cacheHostname}
154155
downloadOpts.CacheableURIPrefixes = config.CacheableURIPrefixes()
155156
downloadOpts.ForceCachePrefixRewrite = viper.GetBool(config.OptForceCachePrefixRewrite)
157+
downloadOpts.CacheUsePathProxy = viper.GetBool(config.OptCacheUsePathProxy)
156158
}
157159

158160
if getter.Downloader == nil {

0 commit comments

Comments
 (0)