mirror of
https://github.com/tun2proxy/tun2proxy.git
synced 2025-06-22 00:50:52 +00:00
minor changes
This commit is contained in:
parent
ca5b550e44
commit
64ab4b503c
1 changed files with 1 additions and 2 deletions
|
@ -416,8 +416,7 @@ impl<'a> TunToProxy<'a> {
|
||||||
let interest = match (state.wait_read, state.wait_write) {
|
let interest = match (state.wait_read, state.wait_write) {
|
||||||
(true, false) => Interest::READABLE,
|
(true, false) => Interest::READABLE,
|
||||||
(false, true) => Interest::WRITABLE,
|
(false, true) => Interest::WRITABLE,
|
||||||
(true, true) => Interest::READABLE | Interest::WRITABLE,
|
_ => Interest::READABLE | Interest::WRITABLE,
|
||||||
(false, false) => Interest::READABLE | Interest::WRITABLE,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
poll.registry().register(&mut state.mio_stream, state.token, interest)?;
|
poll.registry().register(&mut state.mio_stream, state.token, interest)?;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue