Class PromiscuousPasvDataConnectionValidator
Validates that we don't have a promiscuous passive data connection.
Implements
Inherited Members
Namespace: FubarDev.FtpServer.DataConnection
Assembly: FubarDev.FtpServer.Commands.dll
Syntax
public class PromiscuousPasvDataConnectionValidator : IFtpDataConnectionValidator
Constructors
| Improve this Doc View SourcePromiscuousPasvDataConnectionValidator(IOptions<PasvCommandOptions>, Nullable<ILogger<PromiscuousPasvDataConnectionValidator>>)
Initializes a new instance of the PromiscuousPasvDataConnectionValidator class.
Declaration
public PromiscuousPasvDataConnectionValidator(IOptions<PasvCommandOptions> options, ILogger<PromiscuousPasvDataConnectionValidator>? logger = default(ILogger<PromiscuousPasvDataConnectionValidator>? ))
Parameters
Type | Name | Description |
---|---|---|
IOptions<PasvCommandOptions> | options | The PASV command handler options. |
Nullable<ILogger<PromiscuousPasvDataConnectionValidator>> | logger | The logger. |
Methods
| Improve this Doc View SourceValidateAsync(IFtpConnection, IFtpDataConnectionFeature, IFtpDataConnection, CancellationToken)
Declaration
public Task<ValidationResult? > ValidateAsync(IFtpConnection connection, IFtpDataConnectionFeature dataConnectionFeature, IFtpDataConnection dataConnection, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
IFtpConnection | connection | |
IFtpDataConnectionFeature | dataConnectionFeature | |
IFtpDataConnection | dataConnection | |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task<Nullable<ValidationResult>> |