Skip to content

Commit

Permalink
Allow hiding sesible data
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelangel-nubla committed Jan 2, 2025
1 parent eeb50c6 commit e7d1db1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/ipv6disc/ipv6disc.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func startUpdater() {
for {
if live {
var result strings.Builder
result.WriteString(worker.State.PrettyPrint(" "))
result.WriteString(worker.State.PrettyPrint(" ", true))
liveOutput <- result.String()
}

Expand Down
2 changes: 1 addition & 1 deletion state.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func (s *State) FilterMACs(hws []net.HardwareAddr) *AddrCollection {
return results
}

func (s *State) PrettyPrint(prefix string) string {
func (s *State) PrettyPrint(prefix string, hideSensible bool) string {
var result strings.Builder

s.macsMutex.Lock()
Expand Down

0 comments on commit e7d1db1

Please sign in to comment.