serve ftp: convert options to new style

This commit is contained in:
Nick Craig-Wood
2024-07-03 19:14:56 +01:00
parent eec95a164d
commit 58da1a165c
2 changed files with 41 additions and 27 deletions

View File

@ -33,7 +33,7 @@ const (
func TestFTP(t *testing.T) {
// Configure and start the server
start := func(f fs.Fs) (configmap.Simple, func()) {
opt := DefaultOpt
opt := Opt
opt.ListenAddr = testHOST + ":" + testPORT
opt.PassivePorts = testPASSIVEPORTRANGE
opt.BasicUser = testUSER