add keepalive for ssh

This commit is contained in:
ginuerzh
2023-03-03 13:06:20 +08:00
parent 54046d2003
commit 7a21c7eb6f
13 changed files with 213 additions and 219 deletions

View File

@ -12,10 +12,10 @@ type ClientConn struct {
client *ssh.Client
}
func NewClientConn(conn net.Conn, client *ssh.Client) net.Conn {
func NewClientConn(session *Session) net.Conn {
return &ClientConn{
Conn: conn,
client: client,
Conn: session.Conn,
client: session.client,
}
}