From 64ab4b503c45901242455a86613da892e8c63944 Mon Sep 17 00:00:00 2001 From: ssrlive <30760636+ssrlive@users.noreply.github.com> Date: Wed, 9 Aug 2023 14:31:33 +0800 Subject: [PATCH] minor changes --- src/tun2proxy.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/tun2proxy.rs b/src/tun2proxy.rs index 87d88df..1bb0170 100644 --- a/src/tun2proxy.rs +++ b/src/tun2proxy.rs @@ -416,8 +416,7 @@ impl<'a> TunToProxy<'a> { let interest = match (state.wait_read, state.wait_write) { (true, false) => Interest::READABLE, (false, true) => Interest::WRITABLE, - (true, true) => Interest::READABLE | Interest::WRITABLE, - (false, false) => Interest::READABLE | Interest::WRITABLE, + _ => Interest::READABLE | Interest::WRITABLE, }; poll.registry().register(&mut state.mio_stream, state.token, interest)?;