Fix ForwardedTCPHandler by switching to a pointer receiver

Closes #109
This commit is contained in:
Luis Gustavo S. Barreto 2019-06-19 01:43:09 -07:00 committed by Kaleb Elwert
parent bb0e5c0692
commit 86efb70628

@ -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)