File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
fortanix-vme/fortanix-vme-runner/src Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -324,7 +324,7 @@ impl Server {
324324 self . listeners . write ( ) . unwrap ( ) . remove ( & addr)
325325 }
326326
327- fn connection ( & self , enclave : VsockAddr , runner_port : u32 ) -> Option < ConnectionInfo > {
327+ fn connection_info ( & self , enclave : VsockAddr , runner_port : u32 ) -> Option < ConnectionInfo > {
328328 // There's an interesting vsock bug. When a new connection is created to the enclave in
329329 // the `handle_request_accept` function (from `ConnectionKey::from_vsock_stream`), the
330330 // local cid is different from the cid received when inspecting `enclave: VsockStream`.
@@ -457,10 +457,10 @@ impl Server {
457457 let enclave_addr = VsockAddr :: new ( enclave_cid, enclave_port) ;
458458 let response = if let Some ( runner_port) = runner_port {
459459 // We're looking for a Connection
460- if let Some ( connection ) = self . connection ( enclave_addr, runner_port) {
460+ if let Some ( ConnectionInfo { local , peer } ) = self . connection_info ( enclave_addr, runner_port) {
461461 Response :: Info {
462- local : connection . local . clone ( ) ,
463- peer : Some ( connection . peer . clone ( ) ) ,
462+ local,
463+ peer : Some ( peer) ,
464464 }
465465 } else {
466466 // Connection not found
You can’t perform that action at this time.
0 commit comments