Remove special handling of version 1.99 as it was not needed

This commit is contained in:
olegkap_cp
2010-12-09 03:01:44 +00:00
parent 0b6997f969
commit ec7b872c0c
+2 -9
View File
@@ -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<DisconnectMessage>(MessageTypes.Disconnect);
@@ -596,7 +589,7 @@ namespace Renci.SshClient
if (index < 1)
{
throw this._exception;
throw this._exception;
}
else if (index > 1)
{