switch to smoltcp dev version

to support IpProtocol with Hash trait
This commit is contained in:
ssrlive 2023-03-25 00:24:02 +08:00 committed by B. Blechschmidt
parent 4eddcfd02b
commit bfa1bbc462
4 changed files with 13 additions and 14 deletions

View file

@ -299,7 +299,7 @@ pub struct Socks5Manager {
impl ConnectionManager for Socks5Manager {
fn handles_connection(&self, connection: &Connection) -> bool {
connection.proto == IpProtocol::Tcp.into()
connection.proto == IpProtocol::Tcp
}
fn new_connection(
@ -307,7 +307,7 @@ impl ConnectionManager for Socks5Manager {
connection: &Connection,
manager: Rc<dyn ConnectionManager>,
) -> Option<Box<dyn TcpProxy>> {
if connection.proto != IpProtocol::Tcp.into() {
if connection.proto != IpProtocol::Tcp {
return None;
}
Some(Box::new(SocksConnection::new(connection, manager)))