fix a crash
This commit is contained in:
parent
50e5d1d318
commit
4a9cbbcfc0
3 changed files with 5 additions and 2 deletions
2
Cargo.lock
generated
2
Cargo.lock
generated
|
@ -72,7 +72,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "revpfw3"
|
||||
version = "0.1.0"
|
||||
version = "0.1.1"
|
||||
dependencies = [
|
||||
"enum-ordinalize",
|
||||
]
|
||||
|
|
|
@ -3,7 +3,7 @@ name = "revpfw3"
|
|||
repository = "https://github.com/tudbut/revpfw3"
|
||||
description = "A tool to bypass portforwarding restrictions using some cheap VServer"
|
||||
license = "MIT"
|
||||
version = "0.1.0"
|
||||
version = "0.1.1"
|
||||
edition = "2021"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
|
|
@ -73,6 +73,9 @@ impl SocketAdapter {
|
|||
}
|
||||
Ok(())
|
||||
}
|
||||
Err(x) if x.kind() == ErrorKind::WouldBlock => {
|
||||
Ok(())
|
||||
}
|
||||
Err(x) => {
|
||||
self.broken = Some(x.raw_os_error().unwrap());
|
||||
Err(x)
|
||||
|
|
Loading…
Add table
Reference in a new issue