Skip to content

Commit

Permalink
Fixed admin console bug that wouldn't update routes
Browse files Browse the repository at this point in the history
  • Loading branch information
antoniomika committed Feb 2, 2020
1 parent ffda923 commit 2df6c4b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion console.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion templates/routes.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 2df6c4b

Please sign in to comment.