File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1616using FubarDev . FtpServer . AccountManagement . Directories . RootPerUser ;
1717using FubarDev . FtpServer . AccountManagement . Directories . SingleRootWithoutHome ;
1818using FubarDev . FtpServer . Authentication ;
19+ using FubarDev . FtpServer . Features ;
1920using FubarDev . FtpServer . FileSystem ;
2021using FubarDev . FtpServer . FileSystem . DotNet ;
2122using FubarDev . FtpServer . FileSystem . GoogleDrive ;
@@ -356,13 +357,14 @@ private static IServiceCollection CreateServices(TestFtpServerOptions options)
356357 // Use an implicit SSL connection (without the AUTHTLS command)
357358 ftpServer . ConfigureConnection += ( s , e ) =>
358359 {
360+ var secureConnectionFeature = e . Connection . Features . Get < ISecureConnectionFeature > ( ) ;
359361 var sslStream = sslStreamWrapperFactory . WrapStreamAsync (
360- e . Connection . OriginalStream ,
362+ secureConnectionFeature . OriginalStream ,
361363 false ,
362364 authTlsOptions . Value . ServerCertificate ,
363365 CancellationToken . None )
364366 . Result ;
365- e . Connection . SocketStream = sslStream ;
367+ secureConnectionFeature . SocketStream = sslStream ;
366368 } ;
367369
368370 return ftpServer ;
You can’t perform that action at this time.
0 commit comments