diff --git a/console.go b/console.go index fc3d61f..7000df7 100644 --- a/console.go +++ b/console.go @@ -238,13 +238,13 @@ func (c *WebConsole) HandleClients(hostname string, g *gin.Context) { "status": true, } - routeListeners := map[string]map[string]string{} clients := map[string]map[string]interface{}{} c.State.SSHConnections.Range(func(key interface{}, val interface{}) bool { clientName := key.(*net.TCPAddr) sshConn := val.(*SSHConnection) listeners := []string{} + routeListeners := map[string]map[string]string{} sshConn.Listeners.Range(func(key interface{}, val interface{}) bool { var tcpListener *net.TCPAddr diff --git a/templates/routes.tmpl b/templates/routes.tmpl index 72b6772..8aac3b6 100644 --- a/templates/routes.tmpl +++ b/templates/routes.tmpl @@ -96,7 +96,7 @@ } $(document).on("click", "tr.client-row", function(e) { - $("#request-list > tr").removeClass("table-active"); + $("#client-list > tr").removeClass("table-active"); $(this).addClass("table-active"); $("#route-list").html(""); $("#route-table").show();