// OLD code //
public int Port
{
get
{
CheckConnected();
return m_session.getPort();
}
}
// NEW code if you want to define your own port
public int Port
{
get
{
CheckConnected();
return m_session.getPort();
}
set
{
SSH_TCP_PORT = value;
}
}
// our server uses other ports besides 22, so I have to do this.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
// OLD code //
public int Port
{
get
{
CheckConnected();
return m_session.getPort();
}
}
// NEW code if you want to define your own port
public int Port
{
get
{
CheckConnected();
return m_session.getPort();
}
set
{
SSH_TCP_PORT = value;
}
}
// our server uses other ports besides 22, so I have to do this.
Sorry,
Thread title was supposed to be
"Update: User Define Port"