From 5d91c9d6d15a1fc4f1fd9f87a0855d622110a0d8 Mon Sep 17 00:00:00 2001 From: Lan Tian Date: Sun, 1 Mar 2020 01:29:35 +0800 Subject: [PATCH] Fix not displaying summary table properly with bird2 --- frontend/webserver.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/webserver.go b/frontend/webserver.go index cd748b4..451561c 100644 --- a/frontend/webserver.go +++ b/frontend/webserver.go @@ -95,7 +95,7 @@ func webHandler(w http.ResponseWriter, r *http.Request, endpoint string, serverQ var responses []string = batchRequest(servers, endpoint, command) for i, response := range responses { w.Write([]byte("

" + html.EscapeString(servers[i]) + ": " + html.EscapeString(command) + "

")) - if (endpoint == "bird" || endpoint == "bird6") && command == "show protocols" && response[0:4] == "name" { + if (endpoint == "bird" || endpoint == "bird6") && command == "show protocols" && strings.ToLower(response[0:4]) == "name" { var isIPv6 bool = endpoint[len(endpoint) - 1] == '6' summaryTable(w, isIPv6, response, servers[i]) } else {