From 17566451cf3523a3ae23a136b9dad917ad379613 Mon Sep 17 00:00:00 2001 From: ssrlive <30760636+ssrlive@users.noreply.github.com> Date: Mon, 21 Aug 2023 17:01:07 +0800 Subject: [PATCH] remove trait UdpProxy --- src/tun2proxy.rs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/tun2proxy.rs b/src/tun2proxy.rs index 2ccc97e..c405486 100644 --- a/src/tun2proxy.rs +++ b/src/tun2proxy.rs @@ -196,11 +196,6 @@ pub(crate) trait TcpProxy { fn get_udp_associate(&self) -> Option; } -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>; fn close_connection(&self, info: &ConnectionInfo);