Skip to content

Commit

Permalink
[client] Anonymize relay address in status peers view (#2640)
Browse files Browse the repository at this point in the history
  • Loading branch information
lixmal authored Sep 24, 2024
1 parent e7d52c8 commit b51d752
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions client/cmd/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -805,6 +805,9 @@ func anonymizePeerDetail(a *anonymize.Anonymizer, peer *peerStateDetailOutput) {
if remoteIP, port, err := net.SplitHostPort(peer.IceCandidateEndpoint.Remote); err == nil {
peer.IceCandidateEndpoint.Remote = fmt.Sprintf("%s:%s", a.AnonymizeIPString(remoteIP), port)
}

peer.RelayAddress = a.AnonymizeURI(peer.RelayAddress)

for i, route := range peer.Routes {
peer.Routes[i] = a.AnonymizeIPString(route)
}
Expand Down

0 comments on commit b51d752

Please sign in to comment.