diff --git a/Cargo.lock b/Cargo.lock index 28c9a3e..a333bee 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -72,7 +72,7 @@ dependencies = [ [[package]] name = "revpfw3" -version = "0.1.0" +version = "0.1.1" dependencies = [ "enum-ordinalize", ] diff --git a/Cargo.toml b/Cargo.toml index 458df44..c9f1c3d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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 diff --git a/src/socket_adapter.rs b/src/socket_adapter.rs index af3687a..6ed8882 100644 --- a/src/socket_adapter.rs +++ b/src/socket_adapter.rs @@ -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)