serve sftp: convert options to new style

This commit is contained in:
Nick Craig-Wood
2024-07-03 19:29:54 +01:00
parent 28ba4b832d
commit eff2497633
3 changed files with 45 additions and 24 deletions

View File

@ -40,7 +40,7 @@ var (
func TestSftp(t *testing.T) {
// Configure and start the server
start := func(f fs.Fs) (configmap.Simple, func()) {
opt := DefaultOpt
opt := Opt
opt.ListenAddr = testBindAddress
opt.User = testUser
opt.Pass = testPass