Skip to content

Commit

Permalink
matrix-diff-ss: skip rpc.statd ports, known optional service
Browse files Browse the repository at this point in the history
  • Loading branch information
sabinaaledort committed May 29, 2024
1 parent 897de9d commit f7c7a13
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,12 @@ func buildMatrixDiff(mat1 types.ComMatrix, mat2 types.ComMatrix) string {
}

for _, cd := range mat2.Matrix {
// Skip "rpc.statd" ports, these are randomly open ports on the node,
// no need to mention them in the matrix diff
if cd.Service == "rpc.statd" {
continue
}

if !mat1.Contains(cd) {
diff += fmt.Sprintf("- %s\n", cd)
}
Expand Down

0 comments on commit f7c7a13

Please sign in to comment.