ConnectionInfo

This commit is contained in:
ssrlive 2023-08-10 14:17:07 +08:00
parent 94835c41a4
commit 489d5fec00
3 changed files with 25 additions and 17 deletions

View file

@ -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;