1
0
mirror of https://github.com/drakkan/sftpgo.git synced 2025-11-29 22:08:10 +02:00

use net.Conn instead of ssh.Conn to close connections

This commit is contained in:
Nicola Murino
2019-09-11 09:41:46 +02:00
parent c1effdf701
commit 784f75f45b
4 changed files with 6 additions and 9 deletions

View File

@@ -16,7 +16,6 @@ import (
"github.com/drakkan/sftpgo/dataprovider"
"github.com/drakkan/sftpgo/logger"
"golang.org/x/crypto/ssh"
"github.com/pkg/sftp"
)
@@ -37,7 +36,7 @@ type Connection struct {
lastActivity time.Time
protocol string
lock *sync.Mutex
sshConn *ssh.ServerConn
netConn net.Conn
}
// Log outputs a log entry to the configured logger