Skip to content
Permalink
Browse files

Fixed admin console bug that wouldn't update routes

  • Loading branch information
antoniomika committed Feb 2, 2020
1 parent ffda923 commit 2df6c4b679094458c97ca52cd4f0c689bb131308
Showing with 2 additions and 2 deletions.
  1. +1 −1 console.go
  2. +1 −1 templates/routes.tmpl
@@ -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
@@ -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();

0 comments on commit 2df6c4b

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