Skip to content

Commit 593f2e0

Browse files
committed
Pass local address for incoming connections
1 parent 7a04436 commit 593f2e0

File tree

2 files changed

+3
-0
lines changed
  • fortanix-vme

2 files changed

+3
-0
lines changed

fortanix-vme/fortanix-vme-abi/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ pub enum Response {
8181
fd: i32,
8282
},
8383
IncomingConnection {
84+
/// The local address (as used by the runner)
85+
local: Addr,
8486
/// The address of the remote party
8587
peer: Addr,
8688
/// The vsock port number the runner will connect to the enclave in order to forward the

fortanix-vme/fortanix-vme-runner/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,7 @@ impl Server {
270270
Ok((mut conn, peer)) => {
271271
let vsock = Vsock::new::<Std>()?;
272272
let response = Response::IncomingConnection{
273+
local: conn.local_addr()?.into(),
273274
peer: peer.into(),
274275
proxy_port: vsock.addr::<Std>()?.port(),
275276
};

0 commit comments

Comments
 (0)