From b51d75204b13a191ecb2ab01ad81d1a73b49b5c5 Mon Sep 17 00:00:00 2001 From: Viktor Liu <17948409+lixmal@users.noreply.github.com> Date: Tue, 24 Sep 2024 20:58:18 +0200 Subject: [PATCH] [client] Anonymize relay address in status peers view (#2640) --- client/cmd/status.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/client/cmd/status.go b/client/cmd/status.go index 1ef8b4913..ed3daa2b5 100644 --- a/client/cmd/status.go +++ b/client/cmd/status.go @@ -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) }