Skip to content

Commit

Permalink
Fix ForwardedTCPHandler by switching to a pointer receiver
Browse files Browse the repository at this point in the history
  • Loading branch information
gustavosbarreto authored and belak committed Jun 19, 2019
1 parent bb0e5c0 commit 86efb70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tcpip.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ type ForwardedTCPHandler struct {
sync.Mutex
}

func (h ForwardedTCPHandler) HandleSSHRequest(ctx Context, srv *Server, req *gossh.Request) (bool, []byte) {
func (h *ForwardedTCPHandler) HandleSSHRequest(ctx Context, srv *Server, req *gossh.Request) (bool, []byte) {
h.Lock()
if h.forwards == nil {
h.forwards = make(map[string]net.Listener)
Expand Down

0 comments on commit 86efb70

Please sign in to comment.