Skip to content

Commit

Permalink
Merge pull request #967 from FanDjango/Protocole
Browse files Browse the repository at this point in the history
Show protocol in Auth Success message
  • Loading branch information
robinrodricks committed Sep 27, 2022
2 parents 128044c + d6c901b commit caa4b16
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions FluentFTP/Streams/FtpSocketStream.cs
Expand Up @@ -1091,7 +1091,7 @@ public class FtpSocketStream : Stream, IDisposable {
}

auth_time_total = DateTime.Now.Subtract(auth_start);
((IInternalFtpClient)Client).LogStatus(FtpTraceLevel.Info, "FTPS Authentication Successful");
((IInternalFtpClient)Client).LogStatus(FtpTraceLevel.Info, "FTPS authentication successful, protocol = " + Client.SslProtocolActive);
((IInternalFtpClient)Client).LogStatus(FtpTraceLevel.Verbose, "Time to activate encryption: " + auth_time_total.Hours + "h " + auth_time_total.Minutes + "m " + auth_time_total.Seconds + "s. Total Seconds: " + auth_time_total.TotalSeconds + ".");
}
catch (AuthenticationException) {
Expand Down Expand Up @@ -1197,7 +1197,7 @@ public class FtpSocketStream : Stream, IDisposable {
}

auth_time_total = DateTime.Now.Subtract(auth_start);
((IInternalFtpClient)Client).LogStatus(FtpTraceLevel.Info, "FTPS Authentication Successful");
((IInternalFtpClient)Client).LogStatus(FtpTraceLevel.Info, "FTPS authentication successful, protocol = " + Client.SslProtocolActive);
((IInternalFtpClient)Client).LogStatus(FtpTraceLevel.Verbose, "Time to activate encryption: " + auth_time_total.Hours + "h " + auth_time_total.Minutes + "m " + auth_time_total.Seconds + "s. Total Seconds: " + auth_time_total.TotalSeconds + ".");
}
catch (AuthenticationException) {
Expand Down

0 comments on commit caa4b16

Please sign in to comment.