diff --git a/Cargo.toml b/Cargo.toml index 73987b3..2153556 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,8 +3,8 @@ name = "tun2proxy" version = "0.5.0" edition = "2021" license = "MIT" -repository = "https://github.com/blechschmidt/tun2proxy" -homepage = "https://github.com/blechschmidt/tun2proxy" +repository = "https://github.com/tun2proxy/tun2proxy" +homepage = "https://github.com/tun2proxy/tun2proxy" authors = ["B. Blechschmidt", "ssrlive"] description = "Tunnel interface to proxy" readme = "README.md" diff --git a/src/desktop_api.rs b/src/desktop_api.rs index 02245ff..0617ad3 100644 --- a/src/desktop_api.rs +++ b/src/desktop_api.rs @@ -129,7 +129,7 @@ pub async fn desktop_run_async(args: Args, shutdown_token: tokio_util::sync::Can } // TproxyState implements the Drop trait to restore network configuration, - // so we we need to assign it to a variable, even if it is not used. + // so we need to assign it to a variable, even if it is not used. let mut _restore: Option = None; #[cfg(target_os = "linux")] diff --git a/src/lib.rs b/src/lib.rs index bb19e43..46cdec9 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -329,7 +329,7 @@ where } IpStackStream::UnknownTransport(u) => { let len = u.payload().len(); - log::info!("#0 unhandled transport - Ip Protocol {:?}, length {}", u.ip_protocol(), len); + log::info!("#0 unhandled transport - Ip Protocol 0x{:02X}, length {}", u.ip_protocol(), len); continue; } IpStackStream::UnknownNetwork(pkt) => { diff --git a/src/session_info.rs b/src/session_info.rs index dc73cf9..fc4e938 100644 --- a/src/session_info.rs +++ b/src/session_info.rs @@ -16,7 +16,7 @@ impl std::fmt::Display for IpProtocol { IpProtocol::Tcp => write!(f, "TCP"), IpProtocol::Udp => write!(f, "UDP"), IpProtocol::Icmp => write!(f, "ICMP"), - IpProtocol::Other(v) => write!(f, "Other({})", v), + IpProtocol::Other(v) => write!(f, "Other(0x{:02X})", v), } } }