pub struct PproxyBackwardServerConfig {
pub control_bind: SocketAddr,
pub external_bind: SocketAddr,
pub auth: Vec<u8>,
pub max_control_connections: usize,
pub max_pending_external: usize,
pub read_timeout_ms: u64,
pub socks5_target: Option<(String, u16)>,
pub client_framing: PproxyBackwardFraming,
}Expand description
Configuration for the pproxy-compatible accepting side.
Fields§
§control_bind: SocketAddr§external_bind: SocketAddr§auth: Vec<u8>Raw auth bytes expected immediately after the transport is accepted.
max_control_connections: usize§max_pending_external: usize§read_timeout_ms: u64§socks5_target: Option<(String, u16)>Optional fixed target the server forwards each external client to after the SOCKS5 CONNECT handshake. The SOCKS5 framing negotiates a destination with the pproxy worker side and uses it for the channel.
client_framing: PproxyBackwardFramingChannel framing applied between the listener and pproxy worker
channels. The Raw framing keeps the older byte-pipe model for
Eggress-internal reverse tests; Socks5 matches pproxy 2.7.9 +in
so payload-level interop with the real pproxy interpreter can be
verified byte-for-byte.
Trait Implementations§
Source§impl Clone for PproxyBackwardServerConfig
impl Clone for PproxyBackwardServerConfig
Source§fn clone(&self) -> PproxyBackwardServerConfig
fn clone(&self) -> PproxyBackwardServerConfig
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 PproxyBackwardServerConfig
impl Debug for PproxyBackwardServerConfig
Auto Trait Implementations§
impl Freeze for PproxyBackwardServerConfig
impl RefUnwindSafe for PproxyBackwardServerConfig
impl Send for PproxyBackwardServerConfig
impl Sync for PproxyBackwardServerConfig
impl Unpin for PproxyBackwardServerConfig
impl UnsafeUnpin for PproxyBackwardServerConfig
impl UnwindSafe for PproxyBackwardServerConfig
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