pub struct ExitProxyConfig {
pub addr: SocketAddr,
pub scheme: ExitProxyScheme,
pub auth: Option<(String, String)>,
}Expand description
Transport-only description of an upstream proxy that exit-node egress is routed through, so a cloud exit node egresses via the proxy’s (e.g. residential) IP rather than its own origin IP.
This is not read inside ts_control; like the other dataplane fields on Config it is
carried for transport only and converted to a ts_forwarder::ProxyConfig by the runtime. It is
only consulted when Config::forward_exit_egress is true (the anti-leak opt-in); on its own
it changes nothing. See the proxy-egress docs in the repo’s AGENTS.md/CLAUDE.md.
Fields§
§addr: SocketAddrAddress of the upstream proxy to connect to.
scheme: ExitProxySchemeWire protocol to speak to the proxy.
auth: Option<(String, String)>Optional (username, password) credentials for proxy auth.
Trait Implementations§
Source§impl Clone for ExitProxyConfig
impl Clone for ExitProxyConfig
Source§fn clone(&self) -> ExitProxyConfig
fn clone(&self) -> ExitProxyConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ExitProxyConfig
impl Debug for ExitProxyConfig
Source§impl<'de> Deserialize<'de> for ExitProxyConfig
impl<'de> Deserialize<'de> for ExitProxyConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ExitProxyConfig
impl RefUnwindSafe for ExitProxyConfig
impl Send for ExitProxyConfig
impl Sync for ExitProxyConfig
impl Unpin for ExitProxyConfig
impl UnsafeUnpin for ExitProxyConfig
impl UnwindSafe for ExitProxyConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more