parent
bb0e5c0692
commit
86efb70628
2
tcpip.go
2
tcpip.go
@ -94,7 +94,7 @@ type ForwardedTCPHandler struct {
|
|||||||
sync.Mutex
|
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()
|
h.Lock()
|
||||||
if h.forwards == nil {
|
if h.forwards == nil {
|
||||||
h.forwards = make(map[string]net.Listener)
|
h.forwards = make(map[string]net.Listener)
|
||||||
|
Loading…
Reference in New Issue
Block a user