auth proxy: add VFS options parameter for use for default VFS

This is for use from the RC API.
This commit is contained in:
Nick Craig-Wood
2025-04-09 11:12:07 +01:00
parent df457f5802
commit 028316ba5d
7 changed files with 13 additions and 8 deletions
+1 -1
View File
@@ -205,7 +205,7 @@ func newWebDAV(ctx context.Context, f fs.Fs, opt *Options) (w *WebDAV, err error
opt: *opt,
}
if proxyflags.Opt.AuthProxy != "" {
w.proxy = proxy.New(ctx, &proxyflags.Opt)
w.proxy = proxy.New(ctx, &proxyflags.Opt, &vfscommon.Opt)
// override auth
w.opt.Auth.CustomAuthFn = w.auth
} else {