Skip to content

Commit

Permalink
socks5: make Socks5 state machine enumeration explicit
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-orlovsky committed May 4, 2024
1 parent 6f91457 commit 5783e3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion socks5-client/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ impl Socks5 {
Ok(vec![])
}
Socks5::Active(_) => Err(Error::Completed),
_ => Err(Error::Closed),
Socks5::Rejected(_) | Socks5::Failed(_) => Err(Error::Closed),
}
}

Expand Down

0 comments on commit 5783e3c

Please sign in to comment.