Skip to content

Commit

Permalink
Remove useless setting at remoteforward example
Browse files Browse the repository at this point in the history
  • Loading branch information
XSAM committed Nov 15, 2019
1 parent 59d6e45 commit ef7b36b
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions _examples/ssh-remoteforward/portforward.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@ func main() {
forwardHandler := &ssh.ForwardedTCPHandler{}

server := ssh.Server{
LocalPortForwardingCallback: ssh.LocalPortForwardingCallback(func(ctx ssh.Context, dhost string, dport uint32) bool {
log.Println("Accepted forward", dhost, dport)
return true
}),
Addr: ":2222",
Handler: ssh.Handler(func(s ssh.Session) {
io.WriteString(s, "Remote forwarding available...\n")
Expand Down

0 comments on commit ef7b36b

Please sign in to comment.