Refactor route management to include resource IDs in state handling

This commit is contained in:
Hakan Sariman
2025-03-06 13:51:46 +03:00
parent e7f921d787
commit 0b42f40cf6
5 changed files with 34 additions and 18 deletions
+1 -1
View File
@@ -614,7 +614,7 @@ func seedFromStatus(a *anonymize.Anonymizer, status *peer.FullStatus) {
for _, peer := range status.Peers {
a.AnonymizeDomain(peer.FQDN)
for route := range peer.GetRoutes() {
a.AnonymizeRoute(route)
a.AnonymizeRoute(route.Route)
}
}
+1 -1
View File
@@ -829,7 +829,7 @@ func toProtoFullStatus(fullStatus peer.FullStatus) *proto.FullStatus {
BytesRx: peerState.BytesRx,
BytesTx: peerState.BytesTx,
RosenpassEnabled: peerState.RosenpassEnabled,
Networks: maps.Keys(peerState.GetRoutes()),
Networks: peerState.GetRoutesSlice(),
Latency: durationpb.New(peerState.Latency),
}
pbFullStatus.Peers = append(pbFullStatus.Peers, pbPeerState)