From 1a7400d3d9a124366a2520d6396369fa29d48b08 Mon Sep 17 00:00:00 2001 From: "NG (Graham)" Date: Fri, 30 May 2025 17:29:56 -0400 Subject: [PATCH] Force encryption for all server op responses --- rc_core/src/polariton/svelto_uuid_copy.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rc_core/src/polariton/svelto_uuid_copy.rs b/rc_core/src/polariton/svelto_uuid_copy.rs index fa52f05..c004bb0 100644 --- a/rc_core/src/polariton/svelto_uuid_copy.rs +++ b/rc_core/src/polariton/svelto_uuid_copy.rs @@ -7,12 +7,12 @@ impl OpIdCopy { } impl OperationModifier for OpIdCopy { - fn after(&self, req: &mut polariton::operation::OperationRequest, resp: &mut polariton::operation::OperationResponse, _flags: &mut u8) { + fn after(&self, req: &mut polariton::operation::OperationRequest, resp: &mut polariton::operation::OperationResponse, flags: &mut u8) { if resp.params.get(&Self::SERVICE_MAPPING_KEY).is_none() { if let Some(svelto_service_id) = req.params.get(&Self::SERVICE_MAPPING_KEY) { resp.params.insert(Self::SERVICE_MAPPING_KEY, svelto_service_id.to_owned()); } } - + *flags |= 0x80; } }