diff --git a/src/socks.rs b/src/socks.rs index d5fd6ad..a8e4fde 100644 --- a/src/socks.rs +++ b/src/socks.rs @@ -33,8 +33,6 @@ struct SocksProxyImpl { data_buf: VecDeque, version: Version, credentials: Option, - command: protocol::Command, - udp_relay_addr: Option
, } impl SocksProxyImpl { @@ -53,8 +51,6 @@ impl SocksProxyImpl { data_buf: VecDeque::default(), version, credentials, - command: protocol::Command::Connect, - udp_relay_addr: None, }; result.send_client_hello()?; Ok(result) @@ -221,11 +217,6 @@ impl SocksProxyImpl { return Err(format!("SOCKS connection failed: {}", response.reply).into()); } - if self.command == protocol::Command::UdpAssociate { - log::info!("UDP packet destination: {}", response.address); - self.udp_relay_addr = Some(response.address); - } - self.server_outbuf.append(&mut self.data_buf); self.data_buf.clear();