Skip to content
Permalink
Browse files

Fixed graceful cleanup

  • Loading branch information
antoniomika committed Dec 24, 2019
1 parent 137265d commit c092022b4e564eca554c35e5193ae3a44eb09095
Showing with 2 additions and 2 deletions.
  1. +1 −1 channels.go
  2. +1 −1 console.go
@@ -122,7 +122,7 @@ func handleAlias(newChannel ssh.NewChannel, sshConn *SSHConnection, state *State
return
}

sshConn.Listeners.Store(conn.RemoteAddr(), tcpAliasToConnect)
sshConn.Listeners.Store(conn.RemoteAddr(), conn)

copyBoth(conn, connection)

@@ -255,7 +255,7 @@ func (c *WebConsole) HandleClients(hostname string, g *gin.Context) {

var name string

if unixListener != nil {
if ok {
name = unixListener.String()
} else {
name = tcpListener.String()

0 comments on commit c092022

Please sign in to comment.
You can’t perform that action at this time.