Browse Source

remove trait UdpProxy

pull/58/head
ssrlive 3 years ago
parent
commit
17566451cf
  1. 5
      src/tun2proxy.rs

5
src/tun2proxy.rs

@ -196,11 +196,6 @@ pub(crate) trait TcpProxy {
fn get_udp_associate(&self) -> Option<SocketAddr>;
}
pub(crate) trait UdpProxy {
fn send_frame(&mut self, destination: &Address, frame: &[u8]) -> Result<(), Error>;
fn receive_frame(&mut self, source: &SocketAddr, frame: &[u8]) -> Result<(), Error>;
}
pub(crate) trait ConnectionManager {
fn new_tcp_proxy(&self, info: &ConnectionInfo, udp_associate: bool) -> Result<Box<dyn TcpProxy>>;
fn close_connection(&self, info: &ConnectionInfo);

Loading…
Cancel
Save