Fix a name typo
This commit is contained in:
@@ -16,7 +16,7 @@ namespace DearFTP.Connection.Commands
|
||||
{
|
||||
var dataConnection = session.DataConnection;
|
||||
|
||||
if (!dataConnection.IsTslProtected && !dataConnection.IsAvailable)
|
||||
if (!dataConnection.IsTlsProtected && !dataConnection.IsAvailable)
|
||||
{
|
||||
stream.Send(ResponseCode.DataConnectionOpenError, "Passive mode not activated.");
|
||||
return;
|
||||
@@ -38,7 +38,7 @@ namespace DearFTP.Connection.Commands
|
||||
|
||||
stream.Send(ResponseCode.FileStatusOK, "File coming.");
|
||||
|
||||
if (dataConnection.IsTslProtected && !dataConnection.IsAvailable)
|
||||
if (dataConnection.IsTlsProtected && !dataConnection.IsAvailable)
|
||||
{
|
||||
stream.Send(ResponseCode.DataConnectionOpenError, "Passive mode not activated.");
|
||||
return;
|
||||
|
||||
@@ -19,7 +19,7 @@ namespace DearFTP.Connection.Commands
|
||||
{
|
||||
var dataConnection = session.DataConnection;
|
||||
|
||||
if (!dataConnection.IsTslProtected && !dataConnection.IsAvailable)
|
||||
if (!dataConnection.IsTlsProtected && !dataConnection.IsAvailable)
|
||||
{
|
||||
stream.Send(ResponseCode.DataConnectionOpenError, "Passive mode not activated.");
|
||||
return;
|
||||
@@ -49,7 +49,7 @@ namespace DearFTP.Connection.Commands
|
||||
|
||||
stream.Send(ResponseCode.FileStatusOK, "Waiting file.");
|
||||
|
||||
if (dataConnection.IsTslProtected && !dataConnection.IsAvailable)
|
||||
if (dataConnection.IsTlsProtected && !dataConnection.IsAvailable)
|
||||
{
|
||||
stream.Send(ResponseCode.DataConnectionOpenError, "Passive mode not activated.");
|
||||
return;
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace DearFTP.Connection
|
||||
public const int Timeout = 10_000;
|
||||
|
||||
public Stream Stream { get; private set; }
|
||||
public bool IsTslProtected { get; private set; }
|
||||
public bool IsTlsProtected { get; private set; }
|
||||
|
||||
public int Port => ((IPEndPoint)_listener.LocalEndpoint).Port;
|
||||
public bool IsAvailable
|
||||
@@ -41,7 +41,7 @@ namespace DearFTP.Connection
|
||||
|
||||
public DynamicDataConnection()
|
||||
{
|
||||
IsTslProtected = false;
|
||||
IsTlsProtected = false;
|
||||
}
|
||||
|
||||
public void Create()
|
||||
@@ -62,7 +62,7 @@ namespace DearFTP.Connection
|
||||
{
|
||||
_client = t.Result;
|
||||
|
||||
if (IsTslProtected)
|
||||
if (IsTlsProtected)
|
||||
{
|
||||
var sslStream = new SslStream(_client.GetStream(), false);
|
||||
sslStream.AuthenticateAsServer(FtpServer.Instance.Configuration.Tls.X509Certificate, false, true);
|
||||
@@ -78,12 +78,12 @@ namespace DearFTP.Connection
|
||||
|
||||
public void ActivateTls()
|
||||
{
|
||||
IsTslProtected = true;
|
||||
IsTlsProtected = true;
|
||||
}
|
||||
|
||||
public void DesactivateTls()
|
||||
{
|
||||
IsTslProtected = false;
|
||||
IsTlsProtected = false;
|
||||
}
|
||||
|
||||
public void Close()
|
||||
|
||||
@@ -6,7 +6,7 @@ namespace DearFTP.Connection
|
||||
{
|
||||
Stream Stream { get; }
|
||||
int Port { get; }
|
||||
bool IsTslProtected { get; }
|
||||
bool IsTlsProtected { get; }
|
||||
bool IsAvailable { get; }
|
||||
|
||||
void Create();
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace DearFTP.Connection
|
||||
public const int Timeout = 10_000;
|
||||
|
||||
public Stream Stream { get; private set; }
|
||||
public bool IsTslProtected { get; private set; }
|
||||
public bool IsTlsProtected { get; private set; }
|
||||
|
||||
public int Port => ((IPEndPoint)_listener.LocalEndpoint).Port;
|
||||
public bool IsAvailable
|
||||
@@ -47,7 +47,7 @@ namespace DearFTP.Connection
|
||||
_listener.Start();
|
||||
}
|
||||
|
||||
IsTslProtected = false;
|
||||
IsTlsProtected = false;
|
||||
}
|
||||
|
||||
public void AcceptClient()
|
||||
@@ -64,7 +64,7 @@ namespace DearFTP.Connection
|
||||
{
|
||||
_client = t.Result;
|
||||
|
||||
if (IsTslProtected)
|
||||
if (IsTlsProtected)
|
||||
{
|
||||
var sslStream = new SslStream(_client.GetStream(), false);
|
||||
sslStream.AuthenticateAsServer(FtpServer.Instance.Configuration.Tls.X509Certificate, false, true);
|
||||
@@ -80,7 +80,7 @@ namespace DearFTP.Connection
|
||||
|
||||
public void ActivateTls()
|
||||
{
|
||||
IsTslProtected = true;
|
||||
IsTlsProtected = true;
|
||||
}
|
||||
|
||||
public void Close()
|
||||
@@ -96,7 +96,7 @@ namespace DearFTP.Connection
|
||||
|
||||
public void DesactivateTls()
|
||||
{
|
||||
IsTslProtected = false;
|
||||
IsTlsProtected = false;
|
||||
}
|
||||
|
||||
public static void Stop()
|
||||
|
||||
Reference in New Issue
Block a user