mirror of
https://github.com/tun2proxy/tun2proxy.git
synced 2025-06-23 01:20:52 +00:00
ConnectionInfo
This commit is contained in:
parent
94835c41a4
commit
489d5fec00
3 changed files with 25 additions and 17 deletions
|
@ -263,6 +263,10 @@ impl SocksProxyImpl {
|
|||
}
|
||||
|
||||
impl TcpProxy for SocksProxyImpl {
|
||||
fn get_connection_info(&self) -> &ConnectionInfo {
|
||||
&self.info
|
||||
}
|
||||
|
||||
fn push_data(&mut self, event: IncomingDataEvent<'_>) -> Result<(), Error> {
|
||||
let direction = event.direction;
|
||||
let buffer = event.buffer;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue