Browse Source

minor changes

pull/52/head
ssrlive 3 years ago
parent
commit
64ab4b503c
  1. 3
      src/tun2proxy.rs

3
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)?;

Loading…
Cancel
Save