Skip to content

Commit

Permalink
Make map
Browse files Browse the repository at this point in the history
  • Loading branch information
moberghammer committed Apr 26, 2024
1 parent 1b8b5d2 commit 99b6372
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,8 @@ func root(_ *cobra.Command, _ []string) {
connections6 = nil
}

var connectionsMap map[string]bool
connections := append(connections4, connections6...)
connectionsMap := make(map[string]bool, len(connections))
for _, ip := range connections {
connectionsMap[ip.String()] = true
}
Expand Down

0 comments on commit 99b6372

Please sign in to comment.