From ec7b872c0ca2012a9e1bc5b04cda321a346023ca Mon Sep 17 00:00:00 2001 From: olegkap_cp Date: Thu, 9 Dec 2010 03:01:44 +0000 Subject: [PATCH] Remove special handling of version 1.99 as it was not needed --- Renci.SshClient/Renci.SshClient/Session.cs | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/Renci.SshClient/Renci.SshClient/Session.cs b/Renci.SshClient/Renci.SshClient/Session.cs index b40e6e3f..e63b52ff 100644 --- a/Renci.SshClient/Renci.SshClient/Session.cs +++ b/Renci.SshClient/Renci.SshClient/Session.cs @@ -469,14 +469,7 @@ namespace Renci.SshClient throw new SshConnectionException(string.Format("Server version '{0}' is not supported.", version), DisconnectReasons.ProtocolVersionNotSupported); } - if (version.Equals("1.99")) - { - this.Write(Encoding.ASCII.GetBytes(string.Format("{0}", this.ClientVersion))); - } - else - { - this.Write(Encoding.ASCII.GetBytes(string.Format("{0}\n", this.ClientVersion))); - } + this.Write(Encoding.ASCII.GetBytes(string.Format("{0}\n", this.ClientVersion))); // Register Transport response messages this.RegisterMessageType(MessageTypes.Disconnect); @@ -596,7 +589,7 @@ namespace Renci.SshClient if (index < 1) { - throw this._exception; + throw this._exception; } else if (index > 1) {