sshd: map each channel with a new connection

Fixes #169
This commit is contained in:
Nicola Murino
2020-09-18 10:52:53 +02:00
parent 98a6d138d4
commit 2df0dd1f70
10 changed files with 57 additions and 61 deletions

View File

@@ -42,9 +42,6 @@ func (c *Connection) GetRemoteAddress() string {
return c.clientContext.RemoteAddr().String()
}
// SetConnDeadline does nothing
func (c *Connection) SetConnDeadline() {}
// Disconnect disconnects the client
func (c *Connection) Disconnect() error {
return c.clientContext.Close(ftpserver.StatusServiceNotAvailable, "connection closed")