Skip to content

Commit

Permalink
Refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuki Kishimoto committed Jul 18, 2022
1 parent 03afb8a commit 5192273
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/reverseproxy-tcp/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ impl TcpReverseProxy {
if let Err(err) = r {
log::error!("Transfer failed: {}", err);

if err.to_string().to_lowercase().contains("ttl") {
use tokio_socks::Error;
if let Some(Error::TtlExpired) = err.downcast_ref::<Error>() {
std::process::exit(0x1);
}
}
Expand Down

0 comments on commit 5192273

Please sign in to comment.