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.
1 parent 59d6e45 commit ef7b36bCopy full SHA for ef7b36b
_examples/ssh-remoteforward/portforward.go
@@ -14,10 +14,6 @@ func main() {
14
forwardHandler := &ssh.ForwardedTCPHandler{}
15
16
server := ssh.Server{
17
- LocalPortForwardingCallback: ssh.LocalPortForwardingCallback(func(ctx ssh.Context, dhost string, dport uint32) bool {
18
- log.Println("Accepted forward", dhost, dport)
19
- return true
20
- }),
21
Addr: ":2222",
22
Handler: ssh.Handler(func(s ssh.Session) {
23
io.WriteString(s, "Remote forwarding available...\n")
0 commit comments