Method
connect
(
target: T,
local_addr: Option<SocketAddr>,
proxy_conf: &Socks5Server,
ms_timeout: u64,
)
Source from the content-addressed store, hash-verified
| 110 | } |
| 111 | |
| 112 | pub async fn connect<'t, T>( |
| 113 | target: T, |
| 114 | local_addr: Option<SocketAddr>, |
| 115 | proxy_conf: &Socks5Server, |
| 116 | ms_timeout: u64, |
| 117 | ) -> ResultType<Self> |
| 118 | where |
| 119 | T: IntoTargetAddr<'t>, |
| 120 | { |
| 121 | let proxy = Proxy::from_conf(proxy_conf, Some(ms_timeout))?; |
| 122 | proxy.connect::<T>(target, local_addr).await |
| 123 | } |
| 124 | |
| 125 | pub fn local_addr(&self) -> SocketAddr { |
| 126 | self.1 |
Tested by
no test coverage detected