mirror of
https://github.com/rclone/rclone.git
synced 2026-01-06 02:23:24 +00:00
vendor: update all dependencies
This commit is contained in:
6
vendor/github.com/pkg/sftp/examples/request-server/main.go
generated
vendored
6
vendor/github.com/pkg/sftp/examples/request-server/main.go
generated
vendored
@@ -72,12 +72,12 @@ func main() {
|
||||
log.Fatal("failed to accept incoming connection", err)
|
||||
}
|
||||
|
||||
// Before use, a handshake must be performed on the incoming
|
||||
// net.Conn.
|
||||
_, chans, reqs, err := ssh.NewServerConn(nConn, config)
|
||||
// Before use, a handshake must be performed on the incoming net.Conn.
|
||||
sconn, chans, reqs, err := ssh.NewServerConn(nConn, config)
|
||||
if err != nil {
|
||||
log.Fatal("failed to handshake", err)
|
||||
}
|
||||
log.Println("login detected:", sconn.User())
|
||||
fmt.Fprintf(debugStream, "SSH server established\n")
|
||||
|
||||
// The incoming Request channel must be serviced.
|
||||
|
||||
Reference in New Issue
Block a user