We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c9fc441 + dd71f10 commit 777ab34Copy full SHA for 777ab34
session.go
@@ -2,7 +2,6 @@ package ssh
2
3
import (
4
"bytes"
5
- "context"
6
"errors"
7
"fmt"
8
"net"
@@ -60,7 +59,7 @@ type Session interface {
60
59
//
61
// The context is canceled when the client's connection closes or I/O
62
// operation fails.
63
- Context() context.Context
+ Context() Context
64
65
// Permissions returns a copy of the Permissions object that was available for
66
// setup in the auth handlers via the Context.
@@ -159,7 +158,7 @@ func (sess *session) Permissions() Permissions {
159
158
return *perms
160
}
161
162
-func (sess *session) Context() context.Context {
+func (sess *session) Context() Context {
163
return sess.ctx
164
165
0 commit comments