From 7c172df791379f1ceced0e6f1326aa2ea276b739 Mon Sep 17 00:00:00 2001 From: Sonia Appasamy Date: Fri, 8 Dec 2023 14:58:48 -0500 Subject: [PATCH] client/web: fix 500 error after logout Calling DebugPacketFilterRules fails when the node is not logged in, which was causing 500 errors on the node data endpoint after logging the node out. Updates #10261 Signed-off-by: Sonia Appasamy --- client/web/web.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/client/web/web.go b/client/web/web.go index 0b0c43212..3dc568dcb 100644 --- a/client/web/web.go +++ b/client/web/web.go @@ -601,11 +601,7 @@ func (s *Server) serveGetNodeData(w http.ResponseWriter, r *http.Request) { http.Error(w, err.Error(), http.StatusInternalServerError) return } - filterRules, err := s.lc.DebugPacketFilterRules(r.Context()) - if err != nil { - http.Error(w, err.Error(), http.StatusInternalServerError) - return - } + filterRules, _ := s.lc.DebugPacketFilterRules(r.Context()) data := &nodeData{ ID: st.Self.ID, Status: st.BackendState,