diff options
Diffstat (limited to 'src/sandbox/remote.rs')
| -rw-r--r-- | src/sandbox/remote.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/sandbox/remote.rs b/src/sandbox/remote.rs index 2f5a1b7..c648843 100644 --- a/src/sandbox/remote.rs +++ b/src/sandbox/remote.rs @@ -22,6 +22,17 @@ impl RemoteBackend { Ok(Self { cfg: cfg.clone(), token: token.to_string(), addr: bound.local, queue: bound.rx }) } + /// The address the rendezvous listener actually bound to. + /// + /// Test-tier only. Production binds through `bound_listener` and hands the + /// address to the agent itself, so nothing in the crate asks for it back; + /// `tests/remote_agent.rs` needs it to point a real agent at the socket. + /// It is gated rather than left public because the census believed it had + /// production callers at two `listener.local_addr()` calls — std's method + /// on a `TcpListener`, in sibling files, which a name match cannot tell + /// apart from this one. That confusion is what `dotted_only` confirmation + /// in `tools/test-surface.py` now forces a human to resolve. + #[cfg(feature = "test-support")] pub fn local_addr(&self) -> &str { &self.addr } |
