|
|
@ -8,6 +8,7 @@ use smoltcp::{ |
|
|
wire::{IpCidr, IpProtocol, Ipv4Packet, Ipv6Packet, TcpPacket, UdpPacket, UDP_HEADER_LEN}, |
|
|
wire::{IpCidr, IpProtocol, Ipv4Packet, Ipv6Packet, TcpPacket, UdpPacket, UDP_HEADER_LEN}, |
|
|
}; |
|
|
}; |
|
|
use socks5_impl::protocol::{Address, StreamOperation, UdpHeader, UserKey}; |
|
|
use socks5_impl::protocol::{Address, StreamOperation, UdpHeader, UserKey}; |
|
|
|
|
|
use std::collections::LinkedList; |
|
|
use std::{ |
|
|
use std::{ |
|
|
collections::{HashMap, HashSet}, |
|
|
collections::{HashMap, HashSet}, |
|
|
convert::{From, TryFrom}, |
|
|
convert::{From, TryFrom}, |
|
|
@ -17,7 +18,6 @@ use std::{ |
|
|
rc::Rc, |
|
|
rc::Rc, |
|
|
str::FromStr, |
|
|
str::FromStr, |
|
|
}; |
|
|
}; |
|
|
use std::collections::LinkedList; |
|
|
|
|
|
|
|
|
|
|
|
#[derive(Hash, Clone, Eq, PartialEq, PartialOrd, Ord, Debug)] |
|
|
#[derive(Hash, Clone, Eq, PartialEq, PartialOrd, Ord, Debug)] |
|
|
pub(crate) struct ConnectionInfo { |
|
|
pub(crate) struct ConnectionInfo { |
|
|
|