Skip to content

Commit 5783e3c

Browse files
committed
socks5: make Socks5 state machine enumeration explicit
1 parent 6f91457 commit 5783e3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

socks5-client/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ impl Socks5 {
131131
Ok(vec![])
132132
}
133133
Socks5::Active(_) => Err(Error::Completed),
134-
_ => Err(Error::Closed),
134+
Socks5::Rejected(_) | Socks5::Failed(_) => Err(Error::Closed),
135135
}
136136
}
137137

0 commit comments

Comments
 (0)